/* Hero section that covers full viewport.
   Navy/gold identity — same tokens as public/css/propp-home.css (loaded
   alongside this file), matching the default homepage. Not tied to MARA. */
.hero-section {
    background: linear-gradient(135deg, var(--propp-navy-deep) 0%, var(--propp-navy-mid) 35%, var(--propp-navy) 65%, var(--propp-navy-light) 100%);
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    padding-top: 120px;
    /* Account for fixed navbar */
    padding-bottom: 5rem;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-weight: 900;
    font-size: 4rem;
    line-height: 1.1;
    color: white;
    margin-bottom: 2rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.hero-title strong {
    color: var(--propp-gold);
}

.hero-description {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 3rem;
    line-height: 1.6;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 3px solid rgba(255, 200, 0, 0.4);
    max-width: 500px;
    font-weight: 400;
}

/* Register Form Styles */
.register-form-container {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 200, 0, 0.08);
    backdrop-filter: blur(10px);
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    margin-top: 80px;
    margin-left: auto;
    margin-right: 0;
}

/* Override for screens 1199px and below */
@media (max-width: 1199px) {
    .register-form-container {
        margin: 2rem 0 0 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 2rem !important;
        max-width: 500px !important;
        width: 100% !important;
    }
}

.register-form-title {
    color: var(--propp-navy-mid);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.9rem;
}

.register-form-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 42px;
    height: 4px;
    border-radius: 2px;
    background: var(--propp-gold);
}

.register-form-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    text-align: center;
}

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

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    width: 100%;
}

.form-control:focus {
    border-color: var(--propp-gold);
    box-shadow: 0 0 0 0.2rem rgba(255, 200, 0, 0.25);
    outline: none;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    width: 100%;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
}

.form-select:focus {
    border-color: var(--propp-gold);
    box-shadow: 0 0 0 0.2rem rgba(255, 200, 0, 0.25);
    outline: none;
}

.btn-register {
    background: var(--propp-gold);
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--propp-ink);
    width: 100%;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(255, 200, 0, 0.25);
}

.btn-register:hover {
    background: var(--propp-gold-bright);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(255, 200, 0, 0.4);
}

.btn-register:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 200, 0, 0.4);
}

.btn-register:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-register:disabled:hover {
    background: #ccc;
    transform: none;
    box-shadow: none;
}

.login-link {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.login-link a {
    color: var(--propp-navy-mid);
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

.info_register {
    margin-bottom: 1rem;
}

/* Error Messages */
.alert {
    padding: 12px 15px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.9rem;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* Terms and Conditions */
.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.form-check-input {
    margin-right: 0.5rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.form-check-label {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.form-check-label a {
    color: var(--propp-navy-mid);
    text-decoration: none;
}

.form-check-label a:hover {
    text-decoration: underline;
}

.password-hint {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Password Strength Meter */
.password-strength-meter {
    margin-bottom: 0.5rem;
}

.strength-bar {
    display: flex;
    gap: 2px;
    height: 5px;
}

.strength-fill {
    flex: 1;
    background-color: #e0e0e0;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.strength-fill.active {
    background-color: var(--propp-gold);
}

/* Password Toggle */
.position-relative {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    z-index: 10;
    background: none;
    border: none;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.password-toggle:hover {
    color: var(--propp-navy-mid);
}

.password-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 200, 0, 0.35);
}

/* Force stacking at 1199px by overriding Bootstrap's grid */
@media (max-width: 1199px) {
    .hero-content .col-lg-7,
    .hero-content .col-lg-5,
    .hero-content .col-xl-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .hero-section {
        align-items: flex-start;
    }
    
    .hero-content {
        padding-top: 100px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-description {
        font-size: 1.1rem;
        max-width: 100%;
    }

    .hero-content {
        padding-top: 120px;
    }

    .register-form-container {
        padding: 2rem;
        margin-top: 3rem;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .register-form-container {
        padding: 1.5rem;
        margin-top: 1rem;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Animation for content entrance */
.hero-content>* {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.8s ease forwards;
}

.hero-title {
    animation-delay: 0.2s;
}

.hero-description {
    animation-delay: 0.6s;
}

.register-form-container {
    animation-delay: 1s;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Updated background pattern to complement the new gradient */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 35%),
        radial-gradient(circle at 60% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 30%);
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .hero-content>* {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .form-control,
    .form-select,
    .btn-register,
    .password-toggle {
        transition: none;
    }

    .btn-register:hover {
        transform: none;
    }
}