.login-body {
    background-color: #f4f6f8;
    background-image:
        radial-gradient(circle at 90% 10%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(16, 185, 129, 0.05) 0%, transparent 40%);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333;
}

.login-wrapper {
    min-height: 100vh;
    width: 100%;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-content-row {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.marketing-section {
    padding-right: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-logo {
    width: 180px;
    height: auto;
    margin-bottom: 1.5rem;
}

.brand-description {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 500px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
}

.feature-icon-circle {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 1rem;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.feature-text h6 {
    font-weight: 700;
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.feature-text p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.login-card-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 480px;
}

.card-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    color: #94a3b8;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.form-label {
    font-weight: 600;
    color: #475569;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.form-control-custom {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #1e293b;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control-custom:focus {
    color: #1e293b;
    background-color: #fff;
    border-color: var(--color-primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.btn-submit {
    width: 100%;
    background-color: #15803d;
    border: none;
    color: white;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-submit:hover {
    background-color: #166534;
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: translateY(0);
}

.support-link {
    text-align: center;
    margin-top: 2rem;
    color: #64748b;
    font-size: 0.9rem;
}

.support-link a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.support-link a:hover {
    text-decoration: underline;
}

.page-footer {
    text-align: center;
    margin-top: 3rem;
    color: #94a3b8;
    font-size: 0.85rem;
}

.alert-custom {
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.9rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.alert-danger-custom {
    background-color: #fef2f2;
    color: #ef4444;
    border: 1px solid #fee2e2;
}

@media (max-width: 991px) {
    .login-wrapper {
        padding: 1rem;
        align-items: flex-start;
        padding-top: 3rem;
    }

    .login-content-row {
        flex-direction: column;
        gap: 3rem;
    }

    .marketing-section {
        padding-right: 0;
        align-items: center;
        text-align: center;
    }

    .brand-description {
        margin-left: auto;
        margin-right: auto;
    }

    .feature-item {
        text-align: left;
    }

    .login-card {
        padding: 2rem;
    }
}

/* ══════════════════════════════════════════
   DARK MARKETING SECTION — redesign
   ══════════════════════════════════════════ */

.marketing-section {
    background: linear-gradient(145deg, #0a1929 0%, #0d2137 55%, #0a2d1f 100%);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.marketing-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(16, 185, 129, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(16, 185, 129, 0.07) 0%, transparent 40%);
    pointer-events: none;
}

.marketing-section .brand-description {
    color: rgba(255, 255, 255, 0.58);
}

.marketing-section .feature-icon-circle {
    background: rgba(16, 185, 129, 0.16);
    box-shadow: none;
}

.marketing-section .feature-text h6 {
    color: rgba(255, 255, 255, 0.92);
}

.marketing-section .feature-text p {
    color: rgba(255, 255, 255, 0.48);
}

/* ── Login mini stats ── */
.login-stats {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.login-stat-item {
    text-align: left;
}

.login-stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-primary, #10b981);
    line-height: 1;
    margin-bottom: 0.2rem;
}

.login-stat-label {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.38);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 600;
}

.login-stat-sep {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

/* Stretch row so both columns equal height */
.login-content-row {
    align-items: stretch;
}

.login-card-section {
    align-items: stretch;
}

.login-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ══════════════════════════════════════════
   AGREEMENT MODAL — redesign
   ══════════════════════════════════════════ */

.agreement-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.14);
}

.agreement-modal-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.agreement-header-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.agreement-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.15rem;
}

.agreement-modal-subtitle {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
}

.agreement-modal-body {
    padding: 1.75rem;
    max-height: 52vh;
    overflow-y: auto;
    background: #fff;
}

.agreement-lead {
    font-size: 0.92rem;
    color: #374151;
    margin-bottom: 1.5rem;
    line-height: 1.65;
}

.agreement-section {
    display: flex;
    gap: 0.875rem;
    margin-bottom: 1.1rem;
    align-items: flex-start;
}

.agreement-section-num {
    width: 26px;
    height: 26px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.agreement-section-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.35rem;
}

.agreement-section-text {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.agreement-list {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
    padding-left: 1.1rem;
}

.agreement-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(245, 158, 11, 0.07);
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    font-size: 0.8rem;
    color: #92400e;
    line-height: 1.55;
    margin-top: 1rem;
}

.agreement-warning-icon {
    color: #f59e0b;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.agreement-modal-footer {
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    padding: 1rem 1.75rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    align-items: center;
}

.agreement-btn-cancel {
    background: transparent;
    color: #64748b;
    border: 1.5px solid #cbd5e1;
    padding: 0.575rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.agreement-btn-cancel:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #1e293b;
}

.agreement-btn-accept {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 0.575rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    font-family: inherit;
}

.agreement-btn-accept:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}

.agreement-btn-accept:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 991px) {
    .marketing-section {
        border-radius: 14px;
        padding: 2rem 1.75rem;
        margin-bottom: 1.25rem;
    }

    .login-stats {
        margin-bottom: 1.75rem;
    }
}
