/* 1. Global Settings */
:root {
    --accent: #26a69a;      /* Professional Teal */
    --accent2: #00e5ff;     /* Cyan Glow */
    --bg-dark: #07090c;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: radial-gradient(circle at center, #1a2a2d 0%, var(--bg-dark) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

/* 2. The Login Box (Glassmorphism) */
.login-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
    text-align: center;
    width: 340px;
    animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 3. User Identity */
.user-profile {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 2px solid var(--accent);
    padding: 3px;
    box-shadow: 0 0 20px rgba(38, 166, 154, 0.3);
    object-fit: cover;
}

h2 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* 4. Input Fields */
input[type="password"] {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    margin-bottom: 15px;
    font-size: 16px;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--accent2);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

/* 5. The Button & Spinner */
button {
    position: relative;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border: none;
    color: #07090c;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 16px;
    width: 100%;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 229, 255, 0.4);
}

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
}

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

button.loading span {
    display: none;
}

button.loading .spinner {
    display: block;
}

/* 6. Feedback */
#error-message {
    color: #ff5252;
    font-size: 13px;
    margin-top: 15px;
    background: rgba(255, 82, 82, 0.1);
    padding: 10px;
    border-radius: 8px;
    display: none;
}
