/* Alliance Capital Professional Login Page Styles */
/* Matches User Selection Page Design */

/* Login Container - Full height with gradient background */
.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--alliance-primary) 0%, var(--alliance-primary-dark) 100%);
    display: flex;
    flex-direction: column;
    font-family: var(--font-family-primary, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    position: relative;
}

/* Content Area - Centered login card */
.login-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Scaled to 75% */
    padding: 18px;
}

/* Professional Login Card - Wider for better layout */
.login-card {
    background: var(--color-white, #ffffff);
    border-radius: 12px; /* 16px -> 12px */
    padding: 36px 24px; /* 48/32 -> 36/24 */
    box-shadow: none;
    border: 2px solid var(--alliance-primary); /* 3px -> 2px */
    max-width: 375px; /* 500px -> 375px (75%) */
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Person Icon Section - Matching the example */
.login-icon-section {
    margin-bottom: 24px; /* 32px -> 24px */
}

.login-person-icon {
    width: 60px;   /* 80px -> 60px */
    height: 60px;  /* 80px -> 60px */
    background: var(--alliance-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px; /* 16px -> 12px */
    color: white;
    font-size: 30px; /* 40px -> 30px */
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
}

/* Welcome Section */
.login-welcome {
    margin-bottom: 24px; /* 32px -> 24px */
}

.login-title {
    font-size: 18px; /* ~75% of 24px variable / 28px fallback */
    font-weight: var(--font-weight-bold, 700);
    color: var(--alliance-primary); /* Corporate orange */
    margin-bottom: 9px; /* 12px -> 9px */
    line-height: var(--line-height-tight, 1.2);
}

.login-subtitle {
    font-size: 12px; /* 16px -> 12px */
    color: var(--color-text-secondary, #666666);
    margin-bottom: var(--spacing-none, 0);
}

/* Form Styles */
.login-form {
    margin-bottom: 18px; /* 24px -> 18px */
    text-align: left;
}

.form-group {
    margin-bottom: 12px; /* 16px -> 12px */
    text-align: left;
}

.form-label {
    display: block;
    color: var(--color-text-primary, #333333);
    font-size: 12px; /* 14px -> 12px */
    font-weight: var(--font-weight-medium, 500);
    margin-bottom: 6px; /* 8px -> 6px */
}

.form-input {
    width: 100%;
    padding: 12px 9px; /* 16 / 12 -> 12 / 9 */
    border: var(--border-width-thin, 1px) solid var(--color-border, #CCCCCC);
    border-radius: 9px; /* 12px -> 9px */
    font-size: 12px; /* 16px -> 12px */
    color: var(--color-text-primary, #333333);
    background-color: var(--color-white, #ffffff);
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--alliance-primary);
    box-shadow: 0 0 0 3px rgba(var(--alliance-primary-rgb), 0.1);
}

/* Form Actions */
.form-actions {
    margin-top: 18px; /* 24px -> 18px */
    text-align: center;
}

.login-button {
    width: 100%;
    padding: 12px 18px; /* 16 / 24 -> 12 / 18 */
    background-color: var(--alliance-primary); /* Corporate orange */
    color: var(--color-white, #ffffff);
    border: 2px solid var(--alliance-primary);
    border-radius: 9px; /* 12px -> 9px */
    font-size: 12px; /* 16px -> 12px */
    font-weight: var(--font-weight-semibold, 600);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px; /* 8px -> 6px */
    text-transform: none;
    letter-spacing: 0.5px;
}

.login-button:hover:not(:disabled) {
    background-color: var(--alliance-primary-dark);
    border-color: var(--alliance-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--alliance-primary-rgb), 0.3);
}

.login-button:disabled {
    background-color: var(--color-gray-disabled, #CCCCCC);
    border-color: var(--color-gray-disabled, #CCCCCC);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-control {
    padding-right: 40px;
}

.toggle-visibility {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.toggle-visibility:hover {
    color: var(--alliance-primary, #b8860b);
}

.password-strength {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.password-strength .strength-bar {
    position: relative;
    width: 120px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.password-strength .strength-bar::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: #ef4444;
    transition: width 0.25s ease, background-color 0.25s ease;
}

.password-strength .strength-bar.level-0::after {
    width: 0;
    background: #e5e7eb;
}

.password-strength .strength-bar.level-1::after {
    width: 20%;
    background: #ef4444;
}

.password-strength .strength-bar.level-2::after {
    width: 40%;
    background: #f97316;
}

.password-strength .strength-bar.level-3::after {
    width: 60%;
    background: #f59e0b;
}

.password-strength .strength-bar.level-4::after {
    width: 80%;
    background: #10b981;
}

.password-strength .strength-bar.level-5::after {
    width: 100%;
    background: #047857;
}

.password-strength .strength-label {
    font-size: 0.8rem;
    color: #4b5563;
    min-width: 70px;
}

.live-status {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    font-size: 0.85rem;
    color: #6b7280;
}

.live-status li {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.live-status li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid currentColor;
    display: inline-block;
}

.live-status li.met {
    color: #059669;
}

.live-status li.met::before {
    background-color: currentColor;
}

.match-status {
    margin-top: 6px;
    font-size: 0.85rem;
}

.match-status.ok {
    color: #059669;
}

.match-status.bad {
    color: #ef4444;
}

/* Forgot Password Section */
.forgot-password-section {
    margin: 18px 0; /* 24px -> 18px */
    text-align: center;
}

.forgot-password-link {
    color: var(--alliance-primary);
    text-decoration: none;
    font-size: 12px; /* 14px -> 12px */
    transition: all 0.2s ease;
}

.forgot-password-link:hover {
    color: var(--alliance-primary-dark);
    text-decoration: underline;
}

/* Action Cards Section - Prominent and visible */
.login-actions {
    margin-top: 24px; /* 32px -> 24px */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px; /* 24px -> 18px */
}

.action-card {
    background: #ffffff;
    border: 2px solid var(--alliance-primary); /* 3px -> 2px */
    border-radius: 12px; /* 16px -> 12px */
    padding: 18px; /* 24px -> 18px */
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--alliance-primary);
    font-size: 12px; /* 16px -> 12px */
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.15);
    min-height: 75px; /* 100px -> 75px */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.action-card:hover {
    background: var(--alliance-primary);
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(var(--alliance-primary-rgb), 0.3);
    text-decoration: none;
}

.action-card-icon {
    font-size: 24px; /* 32px -> 24px */
    margin-bottom: 12px; /* 16px -> 12px */
    display: block;
}

/* OTP Input (Syncfusion) */
.alliance-otp-input {
    margin: 18px 0;
}

.alliance-otp-input .e-otp-input {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 12px 0;
}

.alliance-otp-filled .e-otp-input .e-input {
    width: 50px;
    height: 50px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    border: 2px solid var(--alliance-border, #d1d5db);
    border-radius: 10px;
    background: #f9fafb;
    transition: all 0.3s ease;
}

.alliance-otp-filled .e-otp-input .e-input:focus {
    border-color: var(--alliance-primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.alliance-otp-filled .e-otp-input .e-input::placeholder {
    color: #c4c4c4;
    letter-spacing: 4px;
}

/* Footer Section */
.footer-section {
    margin-top: var(--spacing-large, 24px);
    text-align: center;
}

.footer-link {
    color: var(--alliance-primary);
    text-decoration: none;
    font-size: var(--font-size-small, 14px);
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--alliance-primary-dark);
    text-decoration: underline;
}

/* Bottom Footer */
.bottom-footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: var(--spacing-medium, 16px) var(--spacing-large, 24px);
    text-align: center;
    font-size: var(--font-size-small, 14px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-medium, 16px);
    margin-bottom: var(--spacing-small, 12px);
    flex-wrap: wrap;
}

.bottom-footer-link {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: var(--spacing-xs, 8px) var(--spacing-small, 12px);
    border-radius: var(--border-radius-small, 8px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: var(--font-size-xs, 12px);
}

.bottom-footer-link:hover {
    background: rgba(var(--alliance-primary-rgb), 0.3);
    border-color: var(--alliance-primary);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.contact-info {
    margin-top: var(--spacing-medium, 16px);
    padding-top: var(--spacing-small, 12px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info p {
    margin: 4px 0;
    font-size: var(--font-size-small, 14px);
    opacity: 0.9;
}

/* Validation Messages */
.validation-message {
    color: #dc3545;
    font-size: var(--font-size-small, 14px);
    margin-top: var(--spacing-xs, 8px);
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-content {
        padding: 12px; /* 16px -> 12px */
    }

    .login-card {
        padding: 18px; /* 24px -> 18px */
        max-width: 100%;
        border-width: 2px;
    }

    .login-person-icon {
        width: 45px;   /* 60px -> 45px */
        height: 45px;  /* 60px -> 45px */
        font-size: 22px; /* 30px -> ~22px */
    }

    .login-title {
        font-size: 15px; /* 20px -> 15px */
    }

    .login-actions {
        grid-template-columns: 1fr;
        gap: 9px; /* 12px -> 9px */
    }



    .footer-links {
        flex-direction: column;
        gap: var(--spacing-xs, 8px);
    }

    .bottom-footer {
        padding: var(--spacing-medium, 16px); /* keep footer untouched */
    }

    .form-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}
