: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;
    padding: 0;
    box-sizing: border-box;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

.card {
    background: rgba(30, 35, 41, 0.95);
    border-radius: 0;
    padding: 40px 30px;
    box-shadow: none;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Bigger logo with digital reveal on load */
.brand-logo {
    width: 160px;
    margin: 0 auto 24px auto;
    display: block;
    animation: logo-digital-reveal 1.2s ease-out forwards;
}

@keyframes logo-digital-reveal {
    0%   { opacity: 0; filter: brightness(0) blur(6px); transform: scale(0.9) skewX(0deg); }
    10%  { opacity: 1; filter: brightness(4) blur(0px); transform: scale(1.04) skewX(-3deg); }
    15%  { opacity: 0.6; filter: brightness(0.3) blur(3px); transform: scale(0.98) skewX(2deg); }
    22%  { opacity: 1; filter: brightness(2.5) blur(0px); transform: scale(1.02) skewX(-1deg); }
    28%  { opacity: 0.8; filter: brightness(0.7) blur(1px); transform: scale(1.00) skewX(1deg); }
    35%  { opacity: 1; filter: brightness(1.8) blur(0px); transform: scale(1.01) skewX(0deg); }
    45%  { opacity: 1; filter: brightness(1) blur(0px); transform: scale(1) skewX(0deg); }
    100% { opacity: 1; filter: brightness(1) blur(0px); transform: scale(1) skewX(0deg); }
}

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

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

.group.row {
    display: flex;
    align-items: center;
    border: none;
    border-radius: 4px;
    padding: 0 15px;
    background: #f5f5f5;
}

.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: #666;
    margin-top: 20px;
    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;
}

