:root {
    --brand-red: #D31E24;
    --brand-gold: #D4B26F;
    --bg-light: #F5F5F7;
    --bg-glass: rgba(255, 255, 255, 0.55);
    --border-glass: rgba(255, 255, 255, 0.6);
    --text-dark: #1D1D1F;
    --text-muted: #6E6E73;
    --white: #FFFFFF;
    --transition-apple: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    max-width: 100%;
}

.bg-ambient-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blur-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.35;
}

.blob-gold {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 178, 111, 0.2) 0%, transparent 70%);
    top: -10%;
    right: -10%;
}

.blob-red {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(211, 30, 36, 0.08) 0%, transparent 70%);
    bottom: -10%;
    left: -10%;
}

.login-card {
    background: var(--bg-glass);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border: 1px solid var(--border-glass);
    padding: 3.5rem 3rem;
    border-radius: 28px;
    width: 100%;
    max-width: 440px;
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.01),
        0 40px 80px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    text-align: center;
    position: relative;
    z-index: 10;
}

.logo-login {
    margin-bottom: 2.5rem;
}

.logo-login img {
    height: 44px;
    width: auto;
}

.login-card h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.login-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.form-group {
    text-align: left;
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1.1rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    color: var(--text-dark);
    outline: none;
    transition: var(--transition-apple);
}

.form-control:focus {
    background: var(--white);
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 4px rgba(212, 178, 111, 0.15);
}

.btn-submit {
    width: 100%;
    padding: 0.95rem;
    font-size: 0.95rem;
    font-weight: 600;
    background-color: var(--brand-red);
    color: var(--white);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-apple);
    box-shadow: 0 4px 15px rgba(211, 30, 36, 0.15);
    margin-top: 1rem;
}

.btn-submit:hover {
    background-color: #bb171c;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(211, 30, 36, 0.25);
}

.error-box {
    background-color: rgba(211, 30, 36, 0.08);
    border: 1px solid rgba(211, 30, 36, 0.15);
    color: var(--brand-red);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
    display: none;
    text-align: left;
}

.back-home {
    display: inline-block;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--brand-gold);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-home:hover {
    color: var(--text-dark);
}

@media (max-width: 480px) {
    .login-card {
        padding: 2.5rem 1.75rem;
    }
    .logo-login img {
        height: 36px;
    }
}
