:root {
    /* Paleta Titanium */
    --titanium-light: #e0e5ec;
    --titanium-medium: #a3b1c6;
    --titanium-dark: #5d6b80;
    --titanium-accent: #7d8da7;
    --titanium-gradient: linear-gradient(135deg, #a3b1c6, #7d8da7);
    
    /* Variáveis para modo claro */
    --claro-bg: #f0f3f7;
    --claro-container: #ffffff;
    --claro-texto: #2c3e50;
    --claro-texto-secundario: #5d6b80;
    --claro-input-bg: #f5f7fa;
    --claro-input-border: #dfe4ea;
    --claro-btn-primary: var(--titanium-accent);
    --claro-btn-primary-hover: #6c7d9a;
    --claro-link: var(--titanium-accent);
    --claro-shadow: rgba(163, 177, 198, 0.3);
    --claro-toggle-bg: #dfe4ea;
    --claro-toggle: #f5f7fa;
    
    /* Variáveis para modo escuro */
    --escuro-bg: #121a26;
    --escuro-container: #1c2434;
    --escuro-texto: #e0e5ec;
    --escuro-texto-secundario: #a3b1c6;
    --escuro-input-bg: #252f40;
    --escuro-input-border: #364156;
    --escuro-btn-primary: var(--titanium-accent);
    --escuro-btn-primary-hover: #8d9db8;
    --escuro-link: #8d9db8;
    --escuro-shadow: rgba(12, 18, 30, 0.5);
    --escuro-toggle-bg: #2a3447;
    --escuro-toggle: var(--titanium-accent);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, transform 0.3s ease;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--bg-color);
    padding: 20px;
    background-image: radial-gradient(circle at 15% 50%, rgba(163, 177, 198, 0.1) 0%, transparent 25%), 
                      radial-gradient(circle at 85% 30%, rgba(163, 177, 198, 0.1) 0%, transparent 25%);
}

.recipiente-login {
    width: 100%;
    max-width: 420px;
    background-color: var(--container-color);
    border-radius: 20px;
    box-shadow: 0 15px 35px var(--shadow-color);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--container-border);
    backdrop-filter: blur(4px);
}

.alternar-tema {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 26px;
    background-color: var(--toggle-bg);
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 0 3px;
    cursor: pointer;
    z-index: 10;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alternar-circulo {
    width: 20px;
    height: 20px;
    background-color: var(--toggle-circle);
    border-radius: 50%;
    transform: translateX(var(--toggle-position));
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), background-color 0.4s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cabecalho-login {
    padding: 50px 30px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cabecalho-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--titanium-gradient);
    opacity: 0.08;
    z-index: 0;
}

.logo {
    width: 5rem;
    height: 5rem;
    background: var(--titanium-gradient);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 20px rgba(125, 141, 167, 0.3);
}

.iLogo{
    height: 100%;
    width: 100%;
    border-radius: 1rem;
    background-image: url('img/logoSvg.svg');
    background-repeat: no-repeat;
    background-position: center center;
}

h1 {
    color: var(--text-color);
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
    letter-spacing: -0.5px;
}

.subtitulo {
    color: var(--texto-secundario);
    font-size: 16px;
    font-weight: 400;
    position: relative;
    z-index: 2;
    max-width: 300px;
    margin: 0 auto;
    line-height: 1.5;
}

.form-novaConta {
    padding: 1rem 2rem 2rem;
}

.grupo-inputs {
    margin-bottom: 1rem;
    position: relative;
}

label {
    display: block;
    color: var(--texto-secundario);
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 500;
    padding-left: 5px;
}

.campo-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--input-border);
    border-radius: 12px;
    background-color: var(--input-bg);
    color: var(--text-color);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.campo-input:focus {
    border-color: var(--titanium-accent);
    box-shadow: 0 0 0 4px rgba(125, 141, 167, 0.2);
    transform: translateY(-2px);
}

.campo-input::placeholder {
    color: var(--texto-secundario);
    opacity: 0.6;
}

.recipiente-senha {
    position: relative;
}

.alternar-olho {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--texto-secundario);
    cursor: pointer;
    background: none;
    border: none;
    font-size: 18px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.alternar-olho:hover {
    background-color: rgba(125, 141, 167, 0.1);
    color: var(--titanium-accent);
}

.olho-aberto{
    width: 24px;
    height: 24px;
    background-image: url(img/olho.svg); 
     background-repeat: no-repeat;
}

.olho-fechado{
    width: 24px;
    height: 24px;
    background-image: url(img/olhoFechado.svg);
    background-repeat: no-repeat;
}

.grupo-itens {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.grupo-itens button {
    width: 100%;
    padding: 16px;
    background: var(--titanium-gradient);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(125, 141, 167, 0.4);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(125, 141, 167, 0.5);
}

.btn-login:active {
    transform: translateY(0);
}

.criar-conta {
    text-align: center;
    font-size: 15px;
    color: var(--texto-secundario);
    margin-top: 15px;
}

.criar-conta a {
    color: var(--link);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
    transition: all 0.3s ease;
}

.criar-conta a:hover {
    text-decoration: underline;
    color: var(--titanium-accent);
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.recipiente-login {
    animation: fadeIn 0.6s ease-out forwards;
}

.logo {
    animation: fadeIn 0.7s ease-out 0.1s backwards, float 4s ease-in-out infinite;
}

h1 {
    animation: fadeIn 0.7s ease-out 0.2s backwards;
}

.subtitulo {
    animation: fadeIn 0.7s ease-out 0.3s backwards;
}

.grupo-inputs {
    animation: fadeIn 0.7s ease-out var(--delay) backwards;
}

/* Efeito de onda */
.onda {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: onda 0.6s linear;
}

@keyframes onda {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Responsividade */
@media (max-width: 480px) {
    .recipiente-login {
        max-width: 100%;
        border-radius: 16px;
    }
    
    .cabecalho-login {
        padding: 40px 20px 20px;
    }
    
    .form-novaConta {
        padding: 0 20px 25px;
    }
    
    .logo {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    
    h1 {
        font-size: 24px;
    }
}
