/* Full-screen background */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    height: 100vh;
    background: linear-gradient(135deg, #001f3f 0%, #2d1455 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Wrapper to keep card centered */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Glassmorphism card */
.login-card {
    width: 360px;
    padding: 40px 35px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

/* Title */
.title {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 6px;
    font-weight: 700;
}

/* Subtitle */
.subtitle {
    color: #cccccc;
    font-size: 0.95rem;
    margin-bottom: 28px;
}

/* Input wrapper */
.input-field {
    background: rgba(255,255,255,0.12);
    border-radius: 9px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    transition: 0.2s ease;
}

.input-field:hover {
    background: rgba(255,255,255,0.18);
}

/* Icons */
.input-field i {
    color: #d3d3d3;
    margin-right: 12px;
    font-size: 1.1rem;
}

/* Input styling */
.input-field input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 1rem;
    flex: 1;
}

/* Login Btn */
.login-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 9px;
    background: #6b43aa;
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease-in-out;
}

.login-btn:hover {
    background: #8a63cf;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

/* Error message */
.error {
    color: #ff6b6b;
    min-height: 20px;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Fade animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

/* Back Button */
.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #c3c3c3;
    text-decoration: none;
    font-size: 1rem;
    padding: 8px 14px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    background: rgba(255,255,255,0.05);
    transition: 0.2s ease-in-out;
}

.back-btn:hover {
    color: white;
    background: rgba(255,255,255,0.12);
}

/* Loading container */
.loading {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #c3c3c3;
    font-size: 0.9rem;
}

.hidden {
    display: none;
}

/* Spinner animation */
.spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top: 3px solid #53367e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Error styling */
.error {
    margin-top: 12px;
    color: #ff7474;
    font-size: 0.9rem;
    min-height: 20px;
}

/* Disable button look */
.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
