:root {
    --bg-gradient: radial-gradient(circle at 0% 0%, rgba(157, 100, 245, 0.4) 0%, transparent 40%),
                   radial-gradient(circle at 100% 0%, rgba(223, 166, 88, 0.3) 0%, transparent 40%),
                   radial-gradient(circle at 50% 100%, rgba(223, 166, 88, 0.2) 0%, transparent 40%);
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-blur: 18px;
    --radius-lg: 28px;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background-color: #fdf2f8; /* Soft pinkish background */
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.login-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    width: min(940px, 95vw);
    min-height: 540px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.15), 
                inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    animation: cardIn 0.8s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-image-side {
    flex: 1;
    background: linear-gradient(135deg, rgba(157, 100, 245, 0.9), rgba(223, 166, 88, 0.9));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 3rem 1.5rem 0;
    position: relative;
    overflow: hidden;
    min-width: 320px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.image-text {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 2rem;
}

.image-text h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0.6rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.image-text p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.05em;
    font-weight: 500;
}

.mascot-img {
    position: relative;
    z-index: 2;
    width: 280px;
    max-width: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Lado direito — formulário */
.login-form-side {
    flex: 1;
    background: rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    min-width: 320px;
}

/* Logo */
.index-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.5rem;
    gap: 0.5rem;
    text-align: center;
    width: 100%;
}

.index-logo img {
    width: 100%;
    height: auto;
    max-width: none;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 10px 20px rgba(157, 100, 245, 0.2));
}

.index-logo h1 {
    display: none; /* Logo image covers it */
}

.index-logo p {
    font-size: 0.9rem;
    color: #8c7ba2;
    font-weight: 500;
}

/* Erro */
.error-msg {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #dc2626;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.05);
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #4b3b6b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-left: 4px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    color: #1a0a2e;
    font-size: 0.95rem;
    font-weight: 500;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input::placeholder {
    color: #cbd5e1;
}

.form-input:focus {
    border-color: #9d64f5;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(157, 100, 245, 0.1);
    transform: translateY(-1px);
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.3s;
}

.input-wrapper:focus-within i {
    color: #9d64f5;
}

.btn-login {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #9d64f5, #dfa658);
    border: none;
    border-radius: 16px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: all 0.3s;
    box-shadow: 0 10px 25px -5px rgba(157, 100, 245, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(157, 100, 245, 0.4);
    filter: brightness(1.05);
}

.btn-login:active {
    transform: translateY(0);
}

/* Footer */
.login-footer {
    margin-top: 3rem;
    font-size: 0.75rem;
    color: #948fb1;
    text-align: center;
    font-weight: 500;
}

/* Responsivo */
@media (max-width: 680px) {
    .login-image-side {
        display: none;
    }

    .login-container {
        width: 100%;
        max-width: 440px;
        min-height: auto;
        margin: 1rem;
    }

    .login-form-side {
        padding: 3rem 2rem;
    }
}