* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #6c5ce7;
    --secondary: #fd79a8;
    --accent: #00d2d3;
    --gradiente-completo: linear-gradient(135deg, #6c5ce7, #00d2d3, #fd79a8);
}

body {
    background: var(--gradiente-completo);
    background-attachment: fixed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.main-container {
    text-align: center;
    width: 320px;
    padding: 20px;
}

.logo-img {
    display: block;
    margin: 0 auto 30px auto;
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

.auth-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.auth-label {
    font-size: 0.75rem;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 18px;
    display: block;
}

.auth-box.hidden { display: none; }

.input-wrap {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.input-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 8px rgba(0, 210, 211, 0.3);
}

.input-prefix {
    padding: 0 12px;
    color: var(--primary);
    font-weight: bold;
    font-size: 1rem;
    border-right: 1px solid #ddd;
    line-height: 46px;
    background: rgba(108, 92, 231, 0.05);
}

input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 12px 14px;
    color: #444;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.95rem;
}

input::placeholder { color: #aaa; }

.pin-hint {
    font-size: 0.72rem;
    color: var(--secondary);
    margin: 4px 0 12px;
    text-align: left;
    line-height: 1.4;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--gradiente-completo);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 6px;
    transition: transform 0.1s, filter 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s;
}

.btn-ghost:hover { background: rgba(108,92,231,0.05); }

.footer-link {
    margin-top: 18px;
    color: white;
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: underline;
    opacity: 0.85;
    display: block;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(8px);
    z-index: 100;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active { display: flex; }

.modal-content {
    background: white;
    border-radius: 25px;
    padding: 30px;
    max-width: 320px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease-out;
}

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

.modal-content h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.modal-content p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
    text-align: left;
}

.modal-content hr { border-color: #eee; margin: 14px 0; }

.modal-content a {
    color: var(--primary);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 14px;
}
