* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('images/background.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Overlay para melhor contraste */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 69, 112, 0.85) 0%, rgba(52, 82, 132, 0.75) 100%);
    z-index: 0;
}

.container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
    max-width: 1300px;
    width: 100%;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.header-container {
    max-width: 650px;
    animation: fadeInLeft 0.8s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: 68px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 30px 0;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    letter-spacing: -1px;
}

p {
    font-size: 20px;
    line-height: 1.7;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

form {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 50px 45px;
    border-radius: 24px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: fadeInRight 0.8s ease-out;
    transition: all 0.4s ease;
}

form:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

form img {
    width: 200px;
    height: auto;
    margin: 0 0 30px 0;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

form h2 {
    font-size: 32px;
    font-weight: 700;
    color: #345284;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

form h3 {
    font-size: 15px;
    font-weight: 400;
    color: #666;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

form hr {
    border: none;
    border-top: 2px solid #f0f0f0;
    margin: 25px 0;
}

div {
    margin-bottom: 25px;
}

input[type="email"] {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 17px;
    width: 100%;
    height: 56px;
    padding: 0 20px 0 56px;
    border: 2px solid #e5e5e5;
    border-radius: 14px;
    background-color: #fafafa;
    background-image: url('images/email.png');
    background-repeat: no-repeat;
    background-size: 24px 24px;
    background-position: 18px center;
    transition: all 0.3s ease;
    outline: none;
    color: #333;
}

input[type="email"]::placeholder {
    color: #999;
}

input[type="email"]:hover {
    border-color: #d0d0d0;
    background-color: #f5f5f5;
}

input[type="email"]:focus {
    border-color: #345284;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(52, 82, 132, 0.12);
    transform: translateY(-2px);
}

a.cadastro-link {
    font-size: 16px;
    font-weight: 600;
    color: #345284;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
}

a.cadastro-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, #345284, #4a6fa5);
    transition: width 0.3s ease;
}

a.cadastro-link:hover {
    color: #4a6fa5;
    transform: translateX(4px);
}

a.cadastro-link:hover::after {
    width: 100%;
}

button.enviar-button {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 18px;
    font-weight: 600;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #345284 0%, #4a6fa5 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(52, 82, 132, 0.3);
    margin-top: 10px;
}

button.enviar-button:hover {
    background: linear-gradient(135deg, #4a6fa5 0%, #5d8ac9 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(52, 82, 132, 0.4);
}

button.enviar-button:active {
    transform: translateY(-1px);
}

/* Responsividade Completa */
@media screen and (max-width: 1200px) {
    .container {
        gap: 50px;
        padding: 30px;
    }
    
    h1 {
        font-size: 58px;
    }
    
    p {
        font-size: 19px;
    }
}

@media screen and (max-width: 992px) {
    .container {
        grid-template-columns: 1fr;
        gap: 40px;
        justify-items: center;
        text-align: center;
    }
    
    .header-container {
        max-width: 100%;
    }
    
    h1 {
        font-size: 50px;
    }
    
    p {
        font-size: 18px;
    }
    
    form {
        max-width: 480px;
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 25px 20px;
    }
    
    h1 {
        font-size: 42px;
        margin-bottom: 20px;
    }
    
    p {
        font-size: 17px;
    }
    
    form {
        padding: 40px 35px;
        border-radius: 20px;
    }
    
    form h2 {
        font-size: 28px;
    }
    
    form h3 {
        font-size: 14px;
    }
    
    input[type="email"] {
        height: 52px;
        font-size: 16px;
    }
}

@media screen and (max-width: 576px) {
    h1 {
        font-size: 36px;
    }
    
    p {
        font-size: 16px;
    }
    
    form {
        padding: 35px 30px;
        max-width: 100%;
    }
    
    form img {
        width: 180px;
        margin-bottom: 25px;
    }
    
    form h2 {
        font-size: 26px;
    }
    
    input[type="email"] {
        height: 50px;
        font-size: 15px;
        padding-left: 52px;
    }
    
    button.enviar-button {
        font-size: 17px;
        padding: 14px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 30px;
    }
    
    p {
        font-size: 15px;
    }
    
    form {
        padding: 30px 25px;
    }
    
    form h2 {
        font-size: 24px;
    }
    
    form h3 {
        font-size: 13px;
    }
}

@media screen and (max-width: 360px) {
    h1 {
        font-size: 26px;
    }
    
    form {
        padding: 25px 20px;
    }
    
    form img {
        width: 160px;
    }
    
    input[type="email"] {
        height: 48px;
        font-size: 14px;
    }
    
    button.enviar-button {
        font-size: 16px;
        padding: 13px;
    }
}

/* Animação de carregamento suave */
input[type="email"]:valid {
    border-color: #4CAF50;
}

/* Tratamento de erro visual */
input[type="email"]:invalid:not(:placeholder-shown) {
    border-color: #f44336;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}