/* ============================================
   NEW TEMPLATES SHARED STYLES
   For: index_new, signup_new, benefits_new, login_new
   ============================================ */

/* 1. COLOR VARIABLES (CSS Custom Properties)
   ============================================ */
:root {
    --primary-blue: #2196f3;
    --dark-blue: #003399;
    --light-blue: #42a5f5;
    --border-gray: #e9ecef;
    --text-dark: #333;
    --text-muted: #666;
    --danger-red: #dc3545;
    --danger-bg: #fff5f5;
    --warning-orange: #ff9800;
    --warning-bg: #fff8e1;
    --success-green: #28a745;
    --white: #ffffff;
}

/* 2. HERO SECTIONS
   ============================================ */
/* Base hero section - used by all templates */
.hero-section {
    position: relative;
    min-height: 40vh;
    background: linear-gradient(rgba(0, 51, 153, 0.6), rgba(0, 34, 102, 0.6)),
                url('../core/oreda_background.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 3rem 1rem;
}

/* Variants for different heights */
.hero-section.hero-large {
    min-height: 60vh;  /* index_new */
}

.hero-section.hero-small {
    min-height: 30vh;  /* login_new, signup_new */
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section p,
.hero-section .lead {
    font-size: 1.1rem;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* 3. CONTAINERS & CARDS
   ============================================ */
/* Form/content container with negative margin overlap */
.content-container {
    max-width: 600px;
    margin: -50px auto 3rem;
    position: relative;
    z-index: 10;
    padding: 0 1rem;
}

.content-container.container-narrow {
    max-width: 500px;  /* login_new */
}

.content-container.container-wide {
    max-width: 700px;  /* benefits_new */
}

/* Modern card styling */
.modern-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 3rem;
}

/* 4. FORM CONTROLS
   ============================================ */
.form-label-custom {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: block;
}

.form-control {
    height: 45px;
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    width: 100%;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.15);
    outline: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

/* 5. BUTTONS
   ============================================ */
/* Primary gradient button - used everywhere */
.btn-primary-gradient {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    line-height: 50px;
    text-align: center;
}

.btn-primary-gradient:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 51, 153, 0.3);
    color: white;
}

/* 6. ALERTS & MESSAGES
   ============================================ */
/* Danger alerts */
.alert-danger-custom {
    background: var(--danger-bg);
    border: 1px solid var(--danger-red);
    border-left: 3px solid var(--danger-red);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #721c24;
}

.alert-danger-custom h5 {
    color: #721c24;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.alert-danger-custom p {
    margin-bottom: 0.5rem;
}

.alert-danger-custom p:last-child {
    margin-bottom: 0;
}

.alert-danger-custom a {
    color: var(--danger-red);
    font-weight: 600;
    text-decoration: underline;
}

.alert-danger-custom a:hover {
    color: #a71d2a;
}

/* Warning alerts */
.alert-warning-custom {
    background: var(--warning-bg);
    border: 1px solid var(--warning-orange);
    border-left: 3px solid var(--warning-orange);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #663c00;
}

.alert-warning-custom h5 {
    color: #663c00;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.alert-warning-custom p {
    margin-bottom: 0.5rem;
}

.alert-warning-custom ul {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
}

.alert-warning-custom a {
    color: var(--warning-orange);
    font-weight: 600;
    text-decoration: underline;
}

.alert-warning-custom a:hover {
    color: #e68900;
}

/* Generic message list */
.messages {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.messages li {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.text-danger {
    background: var(--danger-bg);
    border-left: 3px solid var(--danger-red);
    color: var(--danger-red);
}

/* 7. FEATURE CARDS
   ============================================ */
.feature-card {
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.1);
    transform: translateY(-2px);
}

.feature-card-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1976d2 100%);
    color: white;
    padding: 1.5rem;
}

.feature-card-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.feature-card-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 8. RESPONSIVE BREAKPOINTS
   ============================================ */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-section p,
    .hero-section .lead {
        font-size: 1rem;
    }

    .modern-card {
        padding: 2rem 1.5rem;
    }

    .content-container {
        margin-top: -30px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 1rem;
    }

    .modern-card {
        padding: 1.5rem 1rem;
    }
}

/* 9. ACCESSIBILITY
   ============================================ */
.form-control:focus,
.btn-primary-gradient:focus,
button:focus,
a.btn:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}
