/* ── Login Page Styles ── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.login-page {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d8d8d880;
    overflow: hidden;
    position: relative;
}

/* Animated background orbs */
body.login-page::before,
body.login-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

body.login-page::before {
    width: 400px;
    height: 400px;
    background: rgba(172, 24, 7, 0.25);
    top: -100px;
    left: -100px;
}

body.login-page::after {
    width: 350px;
    height: 350px;
    background: rgba(127, 18, 5, 0.18);
    bottom: -80px;
    right: -80px;
    animation-delay: -4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

/* Glass card */
.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 48px 40px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(172, 24, 7, 0.15);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(172, 24, 7, 0.18);
    animation: cardIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
    transform: translateY(24px);
}

@keyframes cardIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo / Icon */
.login-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #ac1807, #7f1205);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(172, 24, 7, 0.3);
}

.login-card h1 {
    color: #ac1807;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
}

.login-card .subtitle {
    color: rgba(0, 0, 0, 0.55);
    font-size: 0.88rem;
    text-align: center;
    margin-bottom: 32px;
}

/* Form elements */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(172, 24, 7, 0.15);
    border-radius: 12px;
    color: #000;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    outline: none;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus {
    border-color: #ac1807;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(172, 24, 7, 0.25);
}

/* Submit button */
.btn-login {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #ac1807, #7f1205);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(172, 24, 7, 0.35);
    margin-top: 8px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(172, 24, 7, 0.45);
}

.btn-login:active {
    transform: translateY(0);
}

/* Messages */
.message {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 10px;
    animation: fadeIn 0.4s ease;
}

.message.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.message.success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        margin: 16px;
        padding: 36px 24px;
    }
}