/* --------------------------------------------------
   GLOBAL PAGE
-------------------------------------------------- */
body {
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    background: linear-gradient(135deg, #0b0b0d, #16161a);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

/* --------------------------------------------------
   CONTAINER
-------------------------------------------------- */
.login-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
}

/* --------------------------------------------------
   LOGIN BOX (Glassmorphism)
-------------------------------------------------- */
.login-box {
    width: 380px;
    padding: 42px 38px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
    animation: fadeUp 0.6s ease-out;
}

/* --------------------------------------------------
   TITLES
-------------------------------------------------- */
.login-title {
    text-align: center;
    margin: 0;
    font-size: 28px;
    font-weight: 600;
}

.login-subtitle {
    text-align: center;
    margin: 8px 0 28px;
    font-size: 15px;
    opacity: 0.7;
}

/* --------------------------------------------------
   ERROR BOX
-------------------------------------------------- */
.error-box {
    background: rgba(255, 70, 70, 0.15);
    border: 1px solid rgba(255, 70, 70, 0.4);
    padding: 12px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    margin-bottom: 22px;
    animation: slideDown 0.4s ease-out;
}

.error-icon {
    margin-right: 10px;
    font-size: 18px;
}

.error-text {
    color: #ff6b6b;
    font-size: 14px;
    font-weight: 500;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------
   INPUTS
-------------------------------------------------- */
.input-group {
    margin-bottom: 22px;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #ddd;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: 0.25s;
}

.input-group input:focus {
    border-color: #4a6cf7;
    background: rgba(255,255,255,0.14);
    box-shadow: 0 0 10px rgba(74,108,247,0.45);
}

/* --------------------------------------------------
   BUTTON + LOADER
-------------------------------------------------- */
.login-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    background: #4a6cf7;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: 0.25s;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-btn:hover {
    background: #3a56c7;
    transform: translateY(-2px);
}

.btn-text {
    transition: 0.2s;
}

/* Loader */
.loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 3px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
}

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

/* Loading state */
.login-btn.loading .btn-text {
    opacity: 0;
}

.login-btn.loading .loader {
    display: block;
}

/* --------------------------------------------------
   ANIMATION
-------------------------------------------------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}
