:root {
    --auth-bg-color: #1e2329;
    --auth-bg-image: url('img/bg.jpg');
    --primary-button: #fcd535;
}

body {
    background-color: var(--auth-bg-color);
    background-image: var(--auth-bg-image);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    font-family: 'Sarabun', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.mobile-screen {
    width: 100%;
    max-width: 480px;
    /* Keep consistent with mobile view */
    padding: 0;
    /* Remove padding to touch edges */
    box-sizing: border-box;
    min-height: 100vh;
    /* Full height */
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .mobile-screen {
        width: 70%;
        max-width: 980px;
    }
}

.card {
    background: rgba(30, 35, 41, 0.95);
    /* Semi-transparent dark card */
    border-radius: 0;
    /* Remove rounded corners */
    padding: 40px 30px;
    box-shadow: none;
    /* Remove shadow */
    text-align: center;
    flex: 1;
    /* Expand to fill height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center content vertically */
}

.brand-logo {
    width: 80px;
    margin: 0 auto 20px auto;
    /* Center horizontally */
    display: block;
}

.title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #fff;
    /* White text */
}

.group {
    position: relative;
    margin-bottom: 20px;
    text-align: left;
}

.group.row {
    display: flex;
    align-items: center;
    border: none;
    border-radius: 4px;
    /* Slightly rounded inputs */
    padding: 0 15px;
    background: #f5f5f5;
    /* Light input background */
}

.icon {
    font-size: 18px;
    margin-right: 15px;
    color: #848e9c;
}

.input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 0;
    font-size: 16px;
    outline: none;
    width: 100%;
    color: #333;
}

.btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-button);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    margin-top: 15px;
    transition: 0.3s;
    text-transform: uppercase;
}

.btn:hover {
    filter: brightness(0.95);
}

.btn.alt {
    background: transparent;
    border: 1px solid var(--primary-button);
    color: var(--primary-button);
    margin-top: 20px;
}

.btn.alt:hover {
    background: rgba(0, 0, 0, 0.05);
}

.note {
    font-size: 14px;
    color: #848e9c;
    margin-top: 25px;
    margin-bottom: 5px;
}

.error {
    background: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

.success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

.note {
    font-size: 14px;
    color: #666;
    margin-top: 20px;
    margin-bottom: 5px;
}

/* Loader */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1e2329;
    /* Dark Grey Background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s;
}

.loader-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
