: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', 'Segoe UI', Tahoma, Arial, sans-serif;
}
body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Arial, sans-serif;
    /* background: var(--bg); */
    color: #222;
}

.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: 220px;
    background: #eef2f6;
    justify-self: center;
}

.divider-land {
    position: absolute;
    top: 36px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    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;
}

#otp-timer {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: #e8f5e9;
    padding: 6px 12px;
    border-radius: 6px;
    color: #2e7d32;
    font-weight: 600;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1;
    white-space: nowrap;
}

.form-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 4px;
    box-shadow: var(--inner-shadow);
    border: 1px solid #f0f3f6;
    padding: 24px;

    position: relative;
}

.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 colors */
    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: var(--accent);
    /* violet hover */
    /* text-decoration: underline; */
}

.message {
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

.message.success {
    color: #2ecc71;
}

.message.error {
    color: #d9534f;
}



/* 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: 150px;
        justify-content: center;
    }
}