@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700&display=swap');

.login-page {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    min-height: 100vh;
    display: flex;
    background: #f4f7f8;
}

.login-hero {
    flex: 1;
    background: linear-gradient(160deg, #0a5c5c 0%, #0d6e6e 45%, #0a4f4f 100%);
    color: #fff;
    padding: 3rem 3.5rem;
    display: none;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 45%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05), transparent 40%);
    pointer-events: none;
}

.login-hero > * {
    position: relative;
    z-index: 1;
}

.login-hero-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.login-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: 420px;
}

.login-hero p {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.9;
    max-width: 460px;
    margin-bottom: 2rem;
}

.login-feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.login-feature-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.login-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.login-feature-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.login-feature-item span {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

.login-stats {
    display: flex;
    gap: 2.5rem;
}

.login-stats strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
}

.login-stats span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.login-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.login-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(13, 110, 110, 0.12);
    padding: 2rem;
}

.login-brand {
    text-align: center;
    margin-bottom: 1.75rem;
}

.login-brand img {
    width: 180px;
    max-width: 100%;
    margin: 0 auto 0.75rem;
}

.login-brand h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a2b2b;
    margin-bottom: 0.35rem;
}

.login-brand p {
    color: #6b7c7c;
    font-size: 0.9rem;
}

.login-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    background: #eef3f3;
    border-radius: 14px;
    padding: 0.35rem;
    margin-bottom: 1.75rem;
}

.login-tab {
    border: none;
    background: transparent;
    border-radius: 11px;
    padding: 0.75rem 0.5rem;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: #5f7171;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
}

.login-tab.active {
    background: #fff;
    color: #0d6e6e;
    box-shadow: 0 4px 12px rgba(13, 110, 110, 0.12);
}

.login-form-group {
    margin-bottom: 0.25rem;
    text-align: right;
}

.login-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2f4040;
    margin-bottom: 0.45rem;
}

.login-input-wrap {
    position: relative;
}

.login-input-wrap .input-icon {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8aa0a0;
    pointer-events: none;
}

.login-input-wrap .toggle-password {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #8aa0a0;
    cursor: pointer;
    padding: 0.25rem;
}

.login-input {
    width: 100%;
    height: 48px;
    border: 1px solid #dbe5e5;
    border-radius: 12px;
    padding: 0 2.6rem;
    font-family: inherit;
    font-size: 0.92rem;
    color: #1f2f2f;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-input:focus {
    outline: none;
    border-color: #0d6e6e;
    box-shadow: 0 0 0 3px rgba(13, 110, 110, 0.12);
}

.login-input[readonly] {
    background: #f7fafa;
}

.login-captcha-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.login-captcha-row img {
    height: 44px;
    border-radius: 10px;
    border: 1px solid #dbe5e5;
    background: #f7fafa;
}

.login-captcha-refresh {
    border: none;
    background: transparent;
    color: #0d6e6e;
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.login-btn {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 12px;
    background: #0d6e6e;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    margin-top: 0.5rem;
}

.login-btn:hover:not(:disabled) {
    background: #0a5c5c;
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-btn-secondary {
    background: #eef5f5;
    color: #0d6e6e;
    margin-top: 0.75rem;
}

.login-btn-secondary:hover:not(:disabled) {
    background: #e2ecec;
}

.login-footer-note {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.78rem;
    color: #8aa0a0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.login-error {
    color: #dc2626;
    font-size: 0.78rem;
    margin-top: 0.35rem;
    min-height: 1rem;
}

.login-otp-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    font-size: 0.8rem;
}

.login-otp-meta button {
    border: none;
    background: transparent;
    color: #0d6e6e;
    font-family: inherit;
    cursor: pointer;
}

.login-otp-meta #resend-code:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.login-otp-meta #timer {
    color: #0d6e6e;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.login-hidden {
    display: none !important;
}

@media (min-width: 992px) {
    .login-hero {
        display: flex;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.75rem 1.25rem;
        border-radius: 18px;
    }

    .login-tab {
        font-size: 0.78rem;
        padding: 0.65rem 0.35rem;
    }
}
