:root {
    --bg: #0b1220;
    --panel-bg: #ffffff;
    --text: #0f172a;
    --muted: #6b7280;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --danger: #dc2626;
    --border: #e5e7eb;
    --shadow: 0px 20px 50px rgba(0, 0, 0, 0.15);
    --radius: 14px;
    --font: "Inter", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    background: #0b1220;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-wrapper {
    width: 100%;
    max-width: 1200px;
    min-height: 680px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--panel-bg);
}

/* LEFT SIDE */
.login-left {
    position: relative;
    padding: 60px;
    background-image: url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1400&q=80");
    background-size: cover;
    background-position: center;
    color: white;
}

.login-left .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(11, 18, 32, 0.92));
    z-index: 0;
}

.brand-area {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 50px;
}

.logo i {
    font-size: 1.6rem;
}

.brand-area h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.brand-area p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 400px;
    opacity: 0.95;
}

.info-cards {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
}

.info-card i {
    font-size: 1.2rem;
    margin-top: 3px;
    color: #ffffff;
}

.info-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.info-card span {
    font-size: 0.9rem;
    opacity: 0.85;
}

.login-footer {
    margin-top: auto;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* RIGHT SIDE */
.login-right {
    padding: 60px 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f9fafb;
}

.login-box {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: var(--radius);
    padding: 45px 40px;
    box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.08);
}

.login-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
}

.login-header p {
    margin-top: 10px;
    font-size: 0.95rem;
    color: var(--muted);
}

.login-form {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    display: block;
}

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

.input-wrapper i {
    position: absolute;
    left: 14px;
    font-size: 1rem;
    color: #94a3b8;
}

.input-wrapper input {
    width: 100%;
    padding: 13px 45px 13px 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 0.95rem;
    outline: none;
    transition: 0.2s ease;
    background: white;
}

.input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0px 0px 0px 4px rgba(37, 99, 235, 0.15);
}

.toggle-password {
    position: absolute;
    right: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: 0.2s ease;
}

.toggle-password i {
    color: #64748b;
    font-size: 1rem;
}

.toggle-password:hover {
    background: rgba(100, 116, 139, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin-top: 4px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    cursor: pointer;
}

.remember-me input {
    width: 16px;
    height: 16px;
}

.forgot-password {
    text-decoration: none;
    font-weight: 600;
    color: var(--primary);
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-login {
    margin-top: 8px;
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 14px;
    background: var(--primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: 0.2s ease;
}

.btn-login:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    width: 100%;
    border-radius: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    background: white;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-secondary:hover {
    background: #f1f5f9;
}

.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 10px 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}


.login-bottom {
    margin-top: 25px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted);
}

.login-bottom a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.login-bottom a:hover {
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 980px) {
    .login-wrapper {
        grid-template-columns: 1fr;
        max-width: 520px;
        min-height: auto;
    }

    .login-left {
        display: none;
    }

    .login-right {
        padding: 35px 20px;
    }

    .login-box {
        padding: 35px 25px;
    }
}
