@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

* {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.login-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    position: relative;
    z-index: 10;
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    width: 100%;
    height: 100%;
    background: #ffffff;
    box-shadow: none;
    border-radius: 0;
    border: none;
}

/* LEFT SIDE - Warm Slate / Amber Warm Palette */
.login-brand {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.login-brand::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at 20% 30%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(217, 119, 6, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.login-brand .brand-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.login-brand .logo-img-container {
    margin-bottom: 24px;
}

.login-brand .logo-img-container img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
}

.login-brand .brand-title {
    font-size: 42px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.login-brand .brand-subtitle {
    color: #f59e0b;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.login-brand .brand-tagline {
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 36px;
}

.login-brand .brand-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
}

.login-brand .brand-features .feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #f1f5f9;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.login-brand .brand-features .feature-item:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-2px);
}

.login-brand .brand-features .feature-item i {
    font-size: 18px;
    color: #f59e0b;
}

/* RIGHT SIDE - FORM */
.login-form {
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    position: relative;
}

.login-form .form-header {
    margin-bottom: 32px;
}

.login-form .form-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.login-form .form-header p {
    color: #64748b;
    font-size: 15px;
    font-weight: 500;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group .input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    transition: all 0.3s ease;
    z-index: 2;
    font-size: 16px;
}

.input-group input {
    width: 100%;
    padding: 16px 18px 16px 50px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: #0f172a;
}

.input-group input:focus {
    outline: none;
    border-color: #d97706;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.1);
}

.input-group.input-focused .input-icon {
    color: #d97706;
}

.btn-primary {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: white;
    font-weight: 700;
    padding: 16px;
    border-radius: 14px;
    border: none;
    width: 100%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    box-shadow: 0 10px 25px rgba(217, 119, 6, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(217, 119, 6, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.message-box {
    padding: 14px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.message-box.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.message-box.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0 20px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-footer .register-link a {
    color: #d97706;
    font-weight: 600;
    text-decoration: none;
}

.form-footer .register-link a:hover {
    text-decoration: underline;
}

.form-footer .secure-badge {
    color: #94a3b8;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-footer .secure-badge i {
    color: #16a34a;
}

.copyright-desk {
    position: absolute;
    bottom: 24px;
    left: 80px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    z-index: 5;
}

/* MOBILE ADJUSTMENTS */
@media (max-width: 900px) {
    .login-wrapper {
        grid-template-columns: 1fr;
    }

    .login-brand {
        display: none !important;
    }

    .copyright-desk {
        display: none;
    }

    .login-form {
        padding: 40px 24px;
        height: 100%;
        justify-content: center;
    }

    .login-form .mobile-logo {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 24px;
    }

    .login-form .mobile-logo img {
        width: 48px;
        height: 48px;
        object-fit: contain;
    }

    .login-form .mobile-logo h1 {
        font-size: 22px;
        font-weight: 800;
        color: #0f172a;
    }
}

@media (min-width: 901px) {
    .mobile-logo {
        display: none;
    }
}