:root {
    --sidebar-bg: #1e293b;
    --primary-teal: #0f766e;
    --primary-teal-hover: #0d6560;
    --primary-teal-light: rgba(15, 118, 110, 0.08);
    --content-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --danger: #dc2626;
    --success: #16a34a;
    --radius: 6px;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-elevated: 0 4px 14px rgba(0, 0, 0, 0.1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    color: var(--text-dark);
    background: var(--content-bg);
    -webkit-font-smoothing: antialiased;
}

.login-wrapper {
    display: flex;
    min-height: 100vh;
}

.login-brand-panel {
    width: 460px;
    min-height: 100vh;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 48px;
}

.login-brand-panel::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(15, 118, 110, 0.12);
}

.login-brand-panel::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(15, 118, 110, 0.08);
}

.brand-content {
    position: relative;
    z-index: 1;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 48px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: var(--primary-teal);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.logo-text {
    color: #f1f5f9;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-sub {
    display: block;
    margin-top: 1px;
    color: var(--text-light);
    font-size: 11px;
}

.brand-headline {
    margin-bottom: 16px;
    color: #f1f5f9;
    font-size: 28px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.brand-headline span {
    color: #5eead4;
}

.brand-desc {
    max-width: 360px;
    margin-bottom: 48px;
    color: var(--text-light);
    font-size: 13.5px;
    line-height: 1.7;
}

.brand-stats {
    display: flex;
    gap: 28px;
    margin-bottom: 48px;
}

.stat-num {
    color: #5eead4;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
}

.stat-lbl {
    margin-top: 2px;
    color: var(--text-light);
    font-size: 11px;
}

.brand-testimonial {
    padding: 20px 24px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.04);
}

.testimonial-text {
    margin-bottom: 14px;
    color: #cbd5e1;
    font-size: 12.5px;
    line-height: 1.65;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.testimonial-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-teal), #14b8a6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.testimonial-name {
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 600;
}

.testimonial-role {
    color: var(--text-light);
    font-size: 10.5px;
}

.login-form-panel {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--content-bg);
}

.login-form-panel::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(15, 118, 110, 0.03);
}

.login-form-wrap {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.login-form-header {
    margin-bottom: 32px;
}

.greeting {
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.login-form-header h1 {
    margin: 0;
    color: var(--text-dark);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.login-card {
    padding: 28px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--card-bg);
    box-shadow: var(--shadow-card);
}

.form-group {
    margin-bottom: 18px;
}

.form-label-corp {
    display: block;
    margin-bottom: 5px;
    color: var(--text-dark);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

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

.input-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 15px;
    pointer-events: none;
}

.input-icon-wrap .form-control {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--card-bg);
    color: var(--text-dark);
    font-size: 13px;
    padding: 9px 38px;
}

.input-icon-wrap .form-control:focus {
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.input-icon-wrap .form-control::placeholder {
    color: var(--text-light);
}

.toggle-pass {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: var(--text-light);
    font-size: 15px;
    cursor: pointer;
}

.toggle-pass:hover {
    color: var(--text-muted);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    margin-bottom: 22px;
}

.form-check-corp {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-check-corp input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-teal);
}

.form-check-corp label {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
}

.forgot-link {
    color: var(--primary-teal);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

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

.btn-login {
    width: 100%;
    border: none;
    border-radius: var(--radius);
    background: var(--primary-teal);
    color: #fff;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s ease;
    min-height: 38px;
}

.btn-login:hover {
    background: var(--primary-teal-hover);
    color: #fff;
}

.btn-login:disabled {
    opacity: 0.75;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: none;
}

.btn-login.loading .spinner {
    display: inline-block;
}

.btn-login.loading .btn-text {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.login-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 500;
}

.login-alert.error {
    background: #fef2f2;
    border-color: #fecaca;
    color: var(--danger);
}

.login-alert.success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: var(--success);
}

.caps-lock {
    margin-top: 6px;
    color: #b45309;
    font-size: 11px;
    display: none;
}

.invalid-feedback {
    font-size: 11px;
}

@media (max-width: 991px) {
    .login-brand-panel {
        display: none;
    }

    .login-form-panel {
        padding: 24px;
    }

    .login-card {
        padding: 22px;
    }
}
