@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Saira+Extra+Condensed:wght@700&display=swap');

:root {
    --primary: #ff4655;
    --primary-dark: #dc3d4b;
    --bg-depth: #050507;
    --glass: rgba(18, 18, 20, 0.85);
    --border: rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body {
    background-color: var(--bg-depth);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f8fafc;
    overflow: hidden;
    position: relative;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 70, 85, 0.08) 0%, rgba(0,0,0,0) 70%);
    top: -200px;
    right: -200px;
    z-index: 0;
}

.blob.second {
    bottom: -250px;
    left: -150px;
    background: radial-gradient(circle, rgba(255, 70, 85, 0.06) 0%, rgba(0,0,0,0) 70%);
}

.app-container { z-index: 10; width: 100%; max-width: 400px; padding: 20px; }

.login-box {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 45px 35px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8);
    text-align: center;
}

.logo { margin-bottom: 35px; }

.logo-icon {
    width: 65px;
    height: 65px;
    color: var(--primary);
    margin: 0 auto 15px;
    filter: drop-shadow(0 0 12px rgba(255, 70, 85, 0.5));
}

.logo h2 { 
    font-family: 'Saira Extra Condensed', sans-serif;
    font-size: 38px; 
    font-weight: 700; 
    letter-spacing: -0.5px; 
    text-transform: uppercase;
    line-height: 1;
}

.subtitle { color: #64748b; font-size: 13px; text-transform: lowercase; margin-top: 4px; letter-spacing: 0.5px; }

.input-group { margin-bottom: 14px; }

input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: white;
    font-size: 14px;
    transition: all 0.2s ease;
}

input:focus {
    border-color: var(--primary);
    outline: none;
    background: rgba(0, 0, 0, 0.6);
}

button {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1.8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
}

button:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -5px rgba(255, 70, 85, 0.4);
}

button:disabled { opacity: 0.6; cursor: not-allowed; }

#error-box {
    background: rgba(239, 68, 68, 0.08);
    color: #f87171;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    font-size: 12px;
    margin-bottom: 25px;
    line-height: 1.4;
}

.hidden { display: none !important; }

.loader {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

@keyframes spin { to { transform: rotate(360deg); } }
