/* login.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

.login-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ============ LADO ESQUERDO (Apresentação) ============ */
.login-apresentacao {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #5b3e96 100%);
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.login-apresentacao::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.logo-area {
    text-align: center;
    margin-bottom: 2rem;
    z-index: 1;
}

.logo-icon {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    animation: flutuar 3s ease-in-out infinite;
}

.logo-area h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.tagline {
    font-size: 1rem;
    opacity: 0.9;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Ilustração com ícones flutuantes */
.ilustracao {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circulo-central {
    font-size: 6rem;
    background: rgba(255, 255, 255, 0.15);
    width: 130px;
    height: 130px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: pulsar 3s ease-in-out infinite;
}

.icone-flutuante {
    position: absolute;
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.2);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.icone-1 { top: 0; left: 20%; animation: flutuar 4s ease-in-out infinite; }
.icone-2 { top: 15%; right: 0; animation: flutuar 3.5s ease-in-out infinite 0.5s; }
.icone-3 { bottom: 15%; right: 10%; animation: flutuar 4.5s ease-in-out infinite 1s; }
.icone-4 { bottom: 5%; left: 10%; animation: flutuar 3.8s ease-in-out infinite 1.5s; }
.icone-5 { top: 40%; left: 0; animation: flutuar 4.2s ease-in-out infinite 0.8s; }

@keyframes flutuar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes pulsar {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(255,255,255,0); }
}

/* Recursos */
.features {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    z-index: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.7rem 1.2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-icon {
    font-size: 1.2rem;
}

/* ============ LADO DIREITO (Formulário) ============ */
.login-form-area {
    flex: 1;
    background: #f8f9fc;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
}

.login-form-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15);
    width: 100%;
    max-width: 420px;
}

.login-form-container h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.subtitulo {
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.input-group {
    margin-bottom: 1.3rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: #34495e;
    font-weight: 600;
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    font-size: 1.1rem;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 0.9rem 0.9rem 0.9rem 45px;
    border: 2px solid #e8eaf0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    background: #f8f9fc;
    font-family: inherit;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.btn-entrar {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-entrar:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(102, 126, 234, 0.4);
}

.btn-entrar:active {
    transform: translateY(0);
}

.mensagem-erro {
    background: #fee;
    color: #c0392b;
    padding: 0.8rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
    border-left: 4px solid #e74c3c;
}

.link-cadastro {
    text-align: center;
    margin-top: 1.5rem;
    color: #7f8c8d;
    font-size: 0.95rem;
}

.link-cadastro a {
    color: #667eea;
    text-decoration: none;
    font-weight: 700;
}

.link-cadastro a:hover {
    text-decoration: underline;
}

.login-footer {
    position: absolute;
    bottom: 1.5rem;
    color: #b0b8c1;
    font-size: 0.85rem;
}

/* ============ RESPONSIVO ============ */
@media (max-width: 900px) {
    .login-wrapper {
        flex-direction: column;
    }

    .login-apresentacao {
        padding: 2rem 1rem;
        min-height: auto;
    }

    .logo-area h1 {
        font-size: 2rem;
    }

    .ilustracao {
        width: 180px;
        height: 180px;
        margin: 1rem 0;
    }

    .circulo-central {
        width: 90px;
        height: 90px;
        font-size: 4rem;
    }

    .icone-flutuante {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .features {
        display: none;
    }

    .login-form-container {
        padding: 2rem 1.5rem;
    }

    .login-footer {
        position: static;
        margin-top: 1.5rem;
    }
}

/* ============ ASSINATURA ============ */
.assinatura-apresentacao {
    margin-top: 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    z-index: 1;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.assinatura-apresentacao p {
    font-size: 0.9rem;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.nome-autor {
    font-size: 1.3rem !important;
    font-weight: 800;
    letter-spacing: 1px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f0e6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(255,255,255,0.2);
    margin: 0.3rem 0;
    position: relative;
    padding: 0 1rem;
}

.nome-autor::before,
.nome-autor::after {
    content: '✦';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
}

.nome-autor::before { left: -0.5rem; }
.nome-autor::after { right: -0.5rem; }

.linha-decorativa {
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    border-radius: 2px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Assinatura do rodapé (lado direito) */
.assinatura {
    font-size: 0.8rem !important;
    color: #b0b8c1;
    margin-top: 0.3rem;
    letter-spacing: 0.3px;
}

.assinatura strong {
    color: #667eea;
    font-weight: 700;
}

/* Responsivo: ajusta assinatura em telas pequenas */
@media (max-width: 900px) {
    .assinatura-apresentacao {
        margin-top: 1.5rem;
    }

    .nome-autor {
        font-size: 1.1rem !important;
    }
}