/* Login Pages - Split Screen Design */

/* ========================================
   GLOBAL LOGIN LAYOUT
   ======================================== */

body.login-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: metropolisregular, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.login-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ========================================
   LEFT SIDE - BRAND & ANNOUNCEMENTS
   ======================================== */

.login-brand {
    flex: 0 0 45%;
    background: linear-gradient(135deg, #67a552 0%, #5a8f47 100%);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    align-self: flex-start;
}

/* Subtle pattern overlay */
.login-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.login-brand__content {
    position: relative;
    z-index: 1;
}

/* Logo */
.login-brand__logo {
    margin-bottom: 60px;
}

.login-brand__logo img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Announcements Section */
.login-announcements {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.login-announcements__title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #ffffff;
}

.login-announcements__list {
    flex: 1;
}

.announcement-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.announcement-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.announcement-item__date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.announcement-item__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

.announcement-item__excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Carousel dots */
.announcement-dots {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.announcement-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.announcement-dot.active {
    background: #ffffff;
    width: 24px;
    border-radius: 4px;
}

/* Footer text */
.login-brand__footer {
    margin-top: 40px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   RIGHT SIDE - FORM AREA
   ======================================== */

.login-form-container {
    flex: 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    min-height: 100vh;
}

.login-form-wrapper {
    width: 100%;
    max-width: 450px;
}

/* Login Form */
.login-form {
    width: 100%;
}

.login-form__header {
    margin-bottom: 40px;
}

.login-form__title {
    font-size: 32px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.login-form__subtitle {
    font-size: 16px;
    color: #6b7280;
}

/* Form Groups */
.login-form-group {
    margin-bottom: 24px;
}

.login-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.login-form-group input[type="email"],
.login-form-group input[type="password"],
.login-form-group input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    line-height: 1.5;
    color: #1f2937;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-family: metropolisregular, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.login-form-group input:focus {
    outline: none;
    border-color: #67a552;
    box-shadow: 0 0 0 3px rgba(103, 165, 82, 0.1);
}

/* Remember Me & Forgot Password */
.login-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.login-remember label {
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    margin: 0;
}

.login-forgot {
    font-size: 14px;
    color: #67a552;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.login-forgot:hover {
    color: #5a8f47;
}

/* Turnstile */
.login-captcha {
    margin-bottom: 24px;
}

/* Buttons */
.login-form-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.login-btn {
    flex: 1;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: metropolisregular, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-decoration: none;
}

.login-btn--primary {
    background: #67a552;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(103, 165, 82, 0.2);
}

.login-btn--primary:hover {
    background: #5a8f47;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(103, 165, 82, 0.3);
}

.login-btn--primary:active {
    transform: translateY(0);
}

.login-btn--secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.login-btn--secondary:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.2);
}

.login-btn--block {
    width: 100%;
}

/* Sign Up Link */
.login-signup {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}

.login-signup a {
    color: #67a552;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.login-signup a:hover {
    color: #5a8f47;
}

/* Alerts */
.login-alert {
    padding: 16px 20px;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.login-alert i {
    font-size: 18px;
    margin-top: 1px;
    flex-shrink: 0;
}

.login-alert a {
    font-weight: 500;
    text-decoration: underline;
    color: inherit;
}

.login-alert a:hover {
    opacity: 0.8;
}

.login-alert p {
    margin: 0;
    line-height: 1.6;
}

.login-alert strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.login-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.login-alert--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.login-alert--warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.login-alert--info {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    color: #374151;
}

/* 2FA Code Input */
#key,
input[name="key"] {
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 3px;
    font-size: 30px !important;
    font-weight: 700;
    text-align:center;
    padding:10px;
    margin-top:6px;
}

/* 2FA Specific */
.twofa-code-display {
    background: #fffbeb;
    border: 2px solid #fbbf24;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin: 30px 0;
}

.twofa-code-display code {
    font-size: 28px;
    font-weight: 700;
    color: #92400e;
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
}

.twofa-description {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Logout Page */
.logout-container {
    text-align: center;
}

.logout-icon {
    font-size: 64px;
    color: #67a552;
    margin-bottom: 24px;
}

.logout-message {
    font-size: 18px;
    color: #374151;
    margin-bottom: 30px;
    margin-top: 30px;
}

.logout-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #67a552;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.2s ease;
}

.logout-link:hover {
    color: #5a8f47;
    gap: 12px;
}

/* Password Reset */
.pwreset-description {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Password Strength Indicator */
#pwstrengthbox {
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin-top: 8px;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #6b7280;
}

#pwstrengthbox.weak {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

#pwstrengthbox.moderate {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

#pwstrengthbox.strong {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

/* Ban Page */
.banned-details {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    margin-top: 24px;
}

.banned-detail-item {
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}

.banned-detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.banned-detail-item:first-child {
    padding-top: 0;
}

.banned-detail-item__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.banned-detail-item__label i {
    font-size: 14px;
    color: #9ca3af;
}

.banned-detail-item__value {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.5;
}

/* Code element for IP address */
.login-alert code {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 600;
}

/* ========================================
   REGISTRATION PAGE
   ======================================== */

/* Wider form wrapper for registration */
.register-form-wrapper {
    max-width: 600px;
}

/* Section Headers */
.register-section {
    margin-bottom: 30px;
}

.register-section__title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

/* Two Column Form Row */
.register-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 0;
}

/* Password Strength Wrapper */
.password-strength-wrapper {
    width: 100%;
}

/* Terms of Service Checkbox */
.register-tos {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.register-tos-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin: 0;
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}

.register-tos-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.register-tos-label a {
    color: #67a552;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.register-tos-label a:hover {
    color: #5a8f47;
}

/* International Phone Input Integration */
.register-form .iti {
    width: 100%;
}

.register-form .iti__flag-container {
    border-radius: 4px 0 0 8px;
}

.register-form .iti__selected-flag {
    background: #f9fafb;
    border-right: 1px solid #d1d5db;
}

/* Country Dropdown Styling */
.register-form select[name="country"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    line-height: 1.5;
    color: #1f2937;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-family: metropolisregular, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    cursor: pointer;
}

.register-form select[name="country"]:focus {
    outline: none;
    border-color: #67a552;
    box-shadow: 0 0 0 3px rgba(103, 165, 82, 0.1);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 991px) {
    .login-wrapper {
        flex-direction: column;
        min-height: calc(100vh - 80px); /* Account for header */
    }

    /* Hide entire left side on mobile */
    .login-brand {
        display: none;
    }

    .login-form-container {
        padding: 40px 30px;
        min-height: auto;
        width: 100%;
    }

    .login-form__title {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .login-form-container {
        padding: 30px 20px;
    }

    .login-form-wrapper {
        max-width: 100%;
    }

    .login-form__title {
        font-size: 24px;
    }

    .login-form-actions {
        flex-direction: column;
    }

    .login-btn {
        width: 100%;
    }

    /* Registration Form Mobile */
    .register-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .register-section__title {
        font-size: 16px;
    }

    .register-form-wrapper {
        max-width: 100%;
    }
}

/* ========================================
   HEADER/NAV ON LOGIN PAGES
   ======================================== */

/* Hide clientarea nav and maincontent on all login pages */
body.login-page .clientarea-nav,
body.login-page .maincontent {
    display: none;
}

/* Desktop: Hide header on login pages (we have left brand section) */
@media (min-width: 992px) {
    body.login-page .order-header {
        display: none;
    }
}

/* Mobile: Show header on login pages (left side is hidden) */
@media (max-width: 991px) {
    body.login-page .order-header {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: #ffffff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
}

/* ========================================
   LEGACY SUPPORT
   ======================================== */

/* Hide old containers when using new design */
body.login-page .logincontainer,
body.login-page .halfwidthcontainer {
    display: none;
}

/* Override old form styles */
body.login-page .form-stacked .control-group {
    margin-bottom: 0;
}

body.login-page .control-group {
    display: block;
}

body.login-page .control-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

body.login-page .controls {
    display: block;
}

.e2fainfo
{
    margin-bottom:15px;
}

.e2fainfo p {
    padding-top:10px;
    padding-bottom:10px;
}
