/* =============================
   RESET
============================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* =============================
   BODY E LAYOUT PRINCIPAL
============================= */

body {
    min-height: 100vh;
    margin: 0;
    background: #f806bc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-page {
    width: 100%;
    max-width: 420px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================
   CARD DE LOGIN
============================= */

.login-box {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    padding: 32px;
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-header h1 {
    font-size: 32px;
    font-weight: bold;
    color: #f806bc;
    margin-bottom: 8px;
}

.login-header h2 {
    font-size: 24px;
    font-weight: bold;
    color: #000000;
}

/* =============================
   ALERTAS
============================= */

.alert {
    display: flex;
    align-items: flex-start;
    padding: 14px;
    margin-bottom: 20px;
    border-radius: 10px;
    position: relative;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-icon {
    font-size: 22px;
    margin-right: 10px;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-title {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
}

.alert-message {
    font-size: 13px;
    line-height: 1.4;
}

.alert-close {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.alert-close:hover {
    opacity: 1;
}

.alert-sucesso {
    background: #e2ffe9;
    color: #00c853;
}

.alert-erro {
    background: #ffe2e2;
    color: #ff0000;
}

.alert-info {
    background: #e3f2fd;
    color: #2196f3;
}

/* =============================
   FORMULÁRIO
============================= */

.login-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 6px;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 12px 40px 12px 40px;
    font-size: 15px;
    border: 1px solid #f806bc;
    border-radius: 10px;
    transition: all 0.3s;
    background: #ffffff;
}

.form-input:focus {
    outline: none;
    border-color: #bb3499;
    box-shadow: 0 0 0 3px rgba(219, 77, 148, 0.3);
}

.form-input::placeholder {
    color: #999999;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    pointer-events: none;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    font-size: 18px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.toggle-password:hover {
    opacity: 1;
}

/* =============================
   BOTÕES
============================= */

.btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-primary {
    background: linear-gradient(to right, #e940bf, #f806bc);
    color: #ffffff;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: #ffffff;
    color: #000000;
    border: 2px solid #f806bc;
}

.btn-secondary:hover {
    background: #f8f8f8;
    opacity: 0.9;
}

/* =============================
   LINKS
============================= */

.login-links {
    text-align: center;
    margin-top: 20px;
}

.link-text {
    font-size: 14px;
    color: #000000;
    margin-bottom: 12px;
}

.link {
    color: #f806bc;
    text-decoration: none;
    font-weight: bold;
}

.link:hover {
    text-decoration: underline;
}

.link-forgot {
    font-size: 14px;
}

/* =============================
   OVERLAY E MODAL
============================= */

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    animation: fadeIn 0.3s ease;
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: 90%;
    max-width: 450px;
}

.modal.active {
    display: block;
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 2px solid #f806bc;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: bold;
    color: #000000;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666666;
    transition: all 0.3s;
    padding: 0;
}

.modal-close:hover {
    color: #000000;
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
}

.modal-description {
    font-size: 14px;
    color: #555555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.modal-actions .btn {
    width: auto;
    flex: 1;
}

/* ==========================
   GOOGLE LOGIN
========================== */

.login-divider{

    display:flex;
    align-items:center;
    justify-content:center;

    margin:22px 0;

    position:relative;
}

.login-divider::before,
.login-divider::after{

    content:'';

    flex:1;

    height:1px;

    background:#e5e7eb;
}

.login-divider span{

    padding:0 14px;

    font-size:14px;

    color:#6b7280;
}

.google-btn{

    width:100%;
    height:56px;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;

    background:#fff;

    border:1px solid #d1d5db;

    border-radius:16px;

    text-decoration:none;

    color:#111827;

    font-weight:600;

    transition:.25s ease;
}

.google-btn:hover{

    background:#f9fafb;

    border-color:#ec4899;

    transform:translateY(-1px);
}

.google-btn img{

    width:22px;
    height:22px;
}

/* =============================
   RESPONSIVIDADE
============================= */

@media (max-width: 480px) {
    .login-box {
        padding: 28px 24px;
    }
    
    .login-header h1 {
        font-size: 28px;
    }
    
    .login-header h2 {
        font-size: 20px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
}

/* =============================
   ANIMAÇÕES
============================= */

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Erro de input */
.input-error {
    display: block;
    color: #ff0000;
    font-size: 12px;
    margin-top: 4px;
    font-weight: bold;
}