/* CSS Melhorado para Tela de Login - Consultório */

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Background decorativo */
body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('../images/psicologo-icon-purple.png') no-repeat center center;
    background-size: 600px 600px;
    opacity: 0.05;
    animation: float 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(3deg); }
}

/* Container principal do login */
.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    text-align: center;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ícone do médico no topo */
.login-container::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: url('../images/3367702.png') no-repeat center center;
    background-size: 80px 80px;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.2);
    border: 4px solid rgba(255, 255, 255, 0.9);
    animation: iconPulse 3s ease-in-out infinite;
    z-index: 3; /* garantir que fique acima */
}

@keyframes iconPulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
}

/* Título */
.login-container h2 {
    margin: 40px 0 15px 0;
    color: #4a5568;
    font-size: 28px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Subtítulo */
.login-subtitle {
    color: #718096;
    font-size: 16px;
    margin-bottom: 35px;
    font-weight: 400;
}

/* Grupos de input */
.input-group {
    margin-bottom: 25px;
    text-align: left;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.input-group input {
    width: 100%;
    padding: 15px 20px;
    box-sizing: border-box;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    outline: none;
}

.input-group input:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.input-group input:focus + label {
    color: #667eea;
}

/* Botão de login */
.login-container button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.login-container button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.login-container button:hover::before {
    left: 100%;
}

.login-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

/* Mensagem de erro */
.error-message {
    color: #e53e3e;
    margin-top: 15px;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 15px;
    background: rgba(229, 62, 62, 0.1);
    border-radius: 8px;
    border-left: 4px solid #e53e3e;
    border: 1px solid rgba(229, 62, 62, 0.2);
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.1);
    text-align: left;
}

/* Mensagem de sucesso */
.success-message {
    color: #38a169;
    margin-top: 15px;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 15px;
    background: rgba(56, 161, 105, 0.1);
    border-radius: 8px;
    border-left: 4px solid #38a169;
    border: 1px solid rgba(56, 161, 105, 0.2);
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(56, 161, 105, 0.1);
    text-align: left;
    min-height: 20px !important;
}

.success-message.show {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Ícone de sucesso */
.success-message::before {
    content: '✓';
    display: inline-block;
    margin-right: 8px;
    font-weight: bold;
    color: #38a169;
}

/* Subtítulo para páginas de recuperação */
.subtitle {
    color: #718096;
    font-size: 14px;
    margin-bottom: 25px;
    font-weight: 400;
    line-height: 1.4;
}

/* Links de navegação */
.links {
    margin-top: 25px;
    text-align: center;
}

.links a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: block;
    margin: 8px 0;
    transition: color 0.3s ease;
}

.links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Texto pequeno para instruções */
small {
    color: #a0aec0;
    font-size: 12px;
    display: block;
    margin-top: 5px;
    min-height: 20px;
}

.error-message.show {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    animation: shake 0.5s ease-in-out;
}

.error-message::before {
    content: '⚠️';
    margin-right: 8px;
    font-size: 16px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Link de esqueci a senha */
.forgot-password {
    margin-top: 20px;
    text-align: center;
}

.forgot-password a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Responsividade */
@media (max-width: 480px) {
    .login-container {
        margin: 20px;
        padding: 30px 25px;
        max-width: none;
    }
    
    .login-container h2 {
        font-size: 24px;
        margin-top: 35px;
    }
    
    .login-subtitle {
        font-size: 14px;
    }
    
    .input-group input {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .login-container button {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .login-container::before {
        width: 80px;
        height: 80px;
        background-size: 60px 60px;
        top: -40px;
    }
}

/* Efeitos de partículas flutuantes */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: floatParticle 10s infinite linear;
}

.particle:nth-child(1) {
    width: 8px;
    height: 8px;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 12px;
    height: 12px;
    left: 20%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    width: 6px;
    height: 6px;
    left: 70%;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    width: 10px;
    height: 10px;
    left: 80%;
    animation-delay: 6s;
}

.particle:nth-child(5) {
    width: 14px;
    height: 14px;
    left: 50%;
    animation-delay: 8s;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* REMOVIDO para evitar linha fina no topo */
/*
.login-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    border-radius: 20px 20px 0 0;
}
*/
