/**
 * Login Page Styles - UI/UX Aprimorado
 * Design glassmorphism com Ionicons
 */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

/* Efeito de bolhas animadas no fundo */
.login-page::before,
.login-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    animation: float 25s infinite ease-in-out;
}

.login-page::before {
    width: 500px;
    height: 500px;
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.login-page::after {
    width: 400px;
    height: 400px;
    bottom: -120px;
    right: -120px;
    animation-delay: 8s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.08;
    }
    25% {
        transform: translateY(-40px) translateX(20px) scale(1.05);
        opacity: 0.12;
    }
    50% {
        transform: translateY(-60px) translateX(40px) scale(1.08);
        opacity: 0.15;
    }
    75% {
        transform: translateY(-30px) translateX(20px) scale(1.03);
        opacity: 0.1;
    }
}

.login-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 32px;
    padding: 48px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    position: relative;
    z-index: 10;
    animation: slideUp 0.6s ease-out;
}

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

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.login-logo ion-icon {
    font-size: 42px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.login-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.login-header p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-weight: 400;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label ion-icon {
    font-size: 18px;
}

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

.input-wrapper ion-icon {
    position: absolute;
    left: 18px;
    font-size: 22px;
    color: rgba(102, 126, 234, 0.7);
    pointer-events: none;
    z-index: 2;
}

.form-group input {
    width: 100%;
    padding: 16px 18px 16px 52px;
    font-size: 15px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: #1f2937;
    transition: all 0.3s ease;
    font-weight: 500;
}

.form-group input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.form-group input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15),
                0 0 0 4px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.form-group input:focus + .input-wrapper ion-icon {
    color: #667eea;
}

.btn-login {
    padding: 18px 32px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.btn-login ion-icon {
    font-size: 22px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.35);
}

.login-footer {
    margin-top: 32px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.login-footer p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert ion-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: white;
    backdrop-filter: blur(10px);
}

.alert-error ion-icon {
    color: #fca5a5;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: white;
    backdrop-filter: blur(10px);
}

.alert-success ion-icon {
    color: #6ee7b7;
}

/* Responsivo */
@media (max-width: 640px) {
    .login-container {
        padding: 36px 28px;
        border-radius: 24px;
    }

    .login-header h1 {
        font-size: 28px;
    }

    .login-logo {
        width: 70px;
        height: 70px;
    }

    .login-logo ion-icon {
        font-size: 36px;
    }

    .form-group input {
        padding: 14px 16px 14px 48px;
    }

    .btn-login {
        padding: 16px 28px;
    }
}
