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

body {
    min-height: 100vh;
    font-family: 'Outfit', Arial, Helvetica, sans-serif;
    /* Dark mode futurista com azul e verde sutil no fundo */
    background: radial-gradient(circle at top right, #0a2e38, #040d16 60%, #010408);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Auth Layout (Login / Cadastro) */
.login-wrapper {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.header-section {
    text-align: center;
    margin-bottom: 25px;
}

.main-logo {
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(114, 255, 184, 0.3));
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.welcome-text {
    text-align: center;
    margin-bottom: 25px;
}

.welcome-text h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 6px;
    /* Neon azul e verde gradient text */
    background: linear-gradient(90deg, #00d2ff, #72ffb8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-text p {
    color: #8fa6c4;
    font-size: 15px;
}

.container {
    width: 100%;
    max-width: 440px;
    /* Glassmorphism premium effect */
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    padding: 40px 35px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.auth-container {
    padding-top: 35px;
    padding-bottom: 35px;
}

/* Form Groups */
.input-group {
    position: relative;
    margin-bottom: 22px;
}

.input-group i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #5d7591;
    font-size: 16px;
    transition: color 0.3s ease;
    z-index: 10;
}

.input-group .toggle-password {
    left: auto;
    right: 20px;
    cursor: pointer;
}

.input-group .toggle-password:hover {
    color: #72ffb8;
}

.input-group input {
    width: 100%;
    padding: 18px 50px 18px 50px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    outline: none;
    border-radius: 16px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.input-group input::placeholder {
    color: #5d7591;
}

.input-group input:focus {
    border-color: #72ffb8;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 4px rgba(114, 255, 184, 0.1);
}

.input-group input:focus ~ i:not(.toggle-password),
.input-group input:not(:placeholder-shown) ~ i:not(.toggle-password) {
    color: #72ffb8;
}

/* Button */
.btn-primary, button {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 16px;
    /* Gradient verde neon do botÃ£o */
    background: linear-gradient(135deg, #0ce164, #08c150);
    color: #03150a;
    font-weight: 800;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(12, 225, 100, 0.25);
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-primary:hover, button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(12, 225, 100, 0.4);
    background: linear-gradient(135deg, #16ee6e, #0bd75a);
}

.btn-primary:active, button:active {
    transform: translateY(1px);
}

/* Links */
.forgot-link {
    display: block;
    text-align: center;
    color: #00d2ff;
    text-decoration: none;
    font-size: 14px;
    margin-top: 24px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-link {
    margin-top: 30px;
    font-size: 14px;
    color: #778ca6;
}

.footer-link a {
    color: #72ffb8;
    text-decoration: none;
    font-weight: 600;
    margin-left: 6px;
    transition: color 0.3s ease;
}

.footer-link a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Messages */
.message {
    padding: 14px;
    border-radius: 12px;
    background: rgba(255, 87, 87, 0.15);
    border: 1px solid rgba(255, 87, 87, 0.3);
    color: #ff7675;
    margin-bottom: 24px;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
}

/* Fallbacks & Old Dashboard Styles */
.logo {
    font-size: 42px;
    font-weight: 900;
    text-align: center;
    letter-spacing: 1px;
    color: #72ffb8;
}

.subtitle {
    text-align: center;
    color: #c9ffe8;
    margin: 8px 0 28px;
}

.dashboard-card {
    text-align: center;
}

.pet {
    font-size: 86px;
    margin: 18px 0;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 24px 0;
}

.metric {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.05);
}

.metric strong {
    display: block;
    color: #8fa6c4;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.metric span {
    display: block;
    font-size: 28px;
    font-weight: 900;
    margin-top: 8px;
    color: #72ffb8;
}

/* Correção global para botões de fechar modal */
button.close-modal-btn, button.btn-modal-close {
    width: auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    color: #8fa6c4 !important;
    font-size: 24px !important;
    cursor: pointer !important;
    transition: color 0.3s ease !important;
    box-shadow: none !important;
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
}

button.close-modal-btn:hover, button.btn-modal-close:hover {
    color: #fff !important;
    background: transparent !important;
    transform: scale(1.1) !important;
    box-shadow: none !important;
}
