/* Auth page styles — extracted from debug.php */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-image: url('/assets/images/wallpaper.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100%;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
}
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
    overscroll-behavior: none;
}
.auth-card {
    max-width: 366px;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 0.8s ease-out;
}
.auth-header {
    text-align: center;
    padding: 0.75rem 1rem 0.5rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(34, 197, 94, 0.02) 100%);
}
.auth-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.25);
}
.auth-logo img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}
.auth-title {
    color: #22c55e;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin: 0.25rem 0;
}
.auth-body {
    padding: 1.25rem;
}
.auth-input {
    width: 100%;
    padding: 0.875rem 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(64, 64, 64, 0.5);
    border-radius: 10px;
    background: rgba(10, 10, 10, 0.8);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.auth-input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
    outline: none;
    background: rgba(15, 15, 15, 0.95);
}
.auth-input::placeholder {
    color: #888;
}
.auth-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-sizing: border-box;
    margin-top: 0.25rem;
}
@media (hover: hover) and (pointer: fine) {
    .auth-btn:hover:not(:disabled) {
        background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
    }
}
.auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.auth-error {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #ef4444;
    font-size: 0.875rem;
    display: none;
}
.auth-footer {
    text-align: center;
    padding: 1rem;
    border-top: 1px solid rgba(64, 64, 64, 0.3);
    color: #666;
    font-size: 0.8rem;
}
.auth-footer a {
    color: #22c55e;
    text-decoration: none;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }
