:root {
    --bg: #f4f7f9;
    --card-bg: #fff;
    --muted: #6b7280;
    --accent: #5D3FD3;
    --danger: #d9534f;
    --panel-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    --inner-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Arial, sans-serif;
    /* background: var(--bg); */
    color: #222;
    height: 100%;
}

.page-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.panel {
    width: 100%;
    max-width: 1000px;
    background: var(--card-bg);
    border-radius: 6px;
    box-shadow: var(--panel-shadow);
    position: relative;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-header {
    position: absolute;
    top: 12px;
    left: 18px;
    font-weight: 600;
    color: var(--muted);
    font-size: 14px;
}

.panel-body {
    display: grid;
    grid-template-columns: 48% 1px 52%;
    align-items: center;
    padding: 60px 40px;
}

.divider {
    width: 1px;
    height: 250px;
    background: #ffffffff;
    justify-self: center;
}

.divider-land {
    position: absolute;
    top: 36px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #5D3FD3;
    border-radius: 12px;
}

.brand-area {
    display: flex;
    justify-content: center;
    text-align: center;
}

.brand .logo {
    width: 140px;
    height: 140px;
    margin-bottom: 12px;
    object-fit: contain;
}

.brand h1 {
    margin: 6px 0 4px;
    font-size: 20px;
    font-weight: 600;
    color: #3b3f45;
}

.brand p {
    margin: 0;
    font-size: 11px;
    color: #8b96a1;
    text-transform: uppercase;
}

.form-area {
    display: flex;
    justify-content: flex-start;
}

.form-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 4px;
    box-shadow: var(--inner-shadow);
    border: 1px solid #f0f3f6;
    padding: 24px;
}

.form-card h3 {
    margin: 0 0 8px;
    font-size: 15px;
    color: #596371;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    /* increased padding */
    font-size: 0.95rem;
    /* modern readable size */
    border: 1px solid var(--border-color);
    /* unified border */
    border-bottom: 1px solid rgba(71, 71, 71, 0.438);
    /* subtle bottom border emphasis */
    background: var(--input-bg, #fff);
    /* fallback if var not set */
    color: var(--text-color, #222);
    /* fallback for text color */
    margin-bottom: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-control::placeholder {
    color: var(--text-muted, #6b7280);
    opacity: 0.7;
}

.form-control:focus {
    border-color: var(--accent, #1e73ff);
    box-shadow: 0 0 0 3px rgba(30, 115, 255, 0.06);
    background-color: #fff;
    /* ensures input brightens on focus */
    outline: none;
}


.actions {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.btn {
    padding: 6px 14px;
    height: 36px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid transparent;
    background: transparent;
    transition: 0.15s ease;
}

.btn.primary {
    color: var(--accent);
    border-color: var(--accent);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn.primary:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.back-link {
    display: block;
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
}

.back-link:hover {
    color: #5D3FD3;
    /* violet on hover */

}



.message {
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

.message.success {
    color: #2ecc71;
}

.message.error {
    color: #d9534f;
}

/* minimal styles for captcha UI (adjust to match your theme) */
.captcha-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.captcha-box {
    width: 56px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: #fff;
    font-weight: 600;
    font-size: 16px;
    user-select: none;
}

.captcha-operator {
    font-size: 18px;
}

.captcha-input {
    width: 56px;
    height: 38px;
    padding: 6px 8px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
}

.captcha-result {
    width: 64px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid #d0d0d0;
    font-weight: 700;
}

.captcha-result.correct {
    background: #e6f7ea;
    border-color: #30a14e;
    color: #18632a;
}

.captcha-refresh {
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.captcha-refresh:hover {
    background: #f3f3f3;
}

.captcha-error {
    color: #c82333;
    margin-top: 6px;
    display: none;
}

@media(max-width:480px) {
    .captcha-box {
        width: 46px;
        height: 34px;
        font-size: 14px;
    }

    .captcha-input {
        width: 64px;
    }

    .captcha-result {
        width: 56px;
        height: 34px;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .panel-body {
        grid-template-columns: 1fr;
        padding: 40px 20px;
        gap: 20px;
    }

    .divider {
        display: none;
    }

    .form-area {
        justify-content: center;
    }

    .form-card {
        max-width: 100%;
    }

    .brand .logo {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .form-card {
        padding: 18px;
    }

    .btn {
        /* width: 100%; */
        width: 100px;
        justify-content: center;
    }
}