/* =====================================================
   RESET & VARIABLES
===================================================== */
:root {
    --primary: #1e293b;
    --accent: #c9a67a;
    --accent-hover: #b89365;
    --bg-page: #f1f5f9;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

/* =====================================================
   LAYOUT CARD
===================================================== */
.wrapper {
    width: 100%;
    max-width: 1000px;
    margin: auto;
}

.card-login {
    background: var(--bg-card);
    border-radius: var(--radius);
    display: flex;
    overflow: hidden;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.07);
    border: 1px solid var(--border-color);
    min-height: 580px;
}

/* =====================================================
   HERO SIDE (LEFT)
===================================================== */
.hero-section {
    flex: 1;
    background: linear-gradient(135deg, #2a2118 0%, #120e0a 100%);
    color: #ffffff;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent 60%;
    z-index: -1;
}

.badge {
    align-self: flex-start;
    background: rgba(201, 166, 122, 0.2);
    border: 1px solid rgba(201, 166, 122, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-content h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 20px;
    margin-bottom: 12px;
}

.hero-content p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
}

.hero-footer {
    font-size: 12px;
    color: #64748b;
}

/* =====================================================
   FORM SIDE (RIGHT)
===================================================== */
.form-section {
    flex: 1.1;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.brand-text h2 {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    line-height: 1.2;
}

.brand-text p {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.form-header {
    margin-bottom: 24px;
}

.form-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.form-header p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Alert */
.alert-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

/* Form inputs */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    height: 46px;
    padding: 0 42px 0 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #f8fafc;
    font-size: 14px;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.input-wrapper input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 166, 122, 0.2);
}

.btn-toggle-pwd {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    font-size: 14px;
}

.btn-toggle-pwd:hover {
    color: var(--text-main);
}

/* Submit Button */
.btn-submit {
    margin-top: 8px;
    height: 46px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn-submit:hover {
    background: #0f172a;
}

.btn-submit:active {
    transform: scale(0.99);
}

/* Footer Link */
.form-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.form-footer a {
    color: #25d366;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* =====================================================
   RESPONSIVE DESIGN
===================================================== */
@media (max-width: 850px) {
    .card-login {
        flex-direction: column;
        min-height: auto;
    }

    .hero-section {
        padding: 32px 24px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .hero-footer {
        display: none;
    }

    .form-section {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    .hero-section {
        padding: 24px 20px;
    }

    .form-section {
        padding: 24px 20px;
    }

    .brand {
        margin-bottom: 20px;
    }

    .form-header {
        margin-bottom: 18px;
    }

    .form-header h3 {
        font-size: 18px;
    }
}