/* Reset e configurações gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #2C3A4D;
    --primary-orange: #D76030;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --gray: #666666;
    --error: #DC3545;
    --success: #28A745;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--light-gray);
    color: var(--primary-blue);
    line-height: 1.6;
}

/* Container principal */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Containers de login e cadastro */
.login-container,
.signup-container {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(44, 58, 77, 0.1);
    display: flex;
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    min-height: 600px;
}

/* Lado esquerdo - Imagem */
.login-left,
.signup-left {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-blue) 0%, rgba(44, 58, 77, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

/* Lado direito - Formulário */
.login-right,
.signup-right {
    flex: 1;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

/* Logo */
.logo-container {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    max-width: 150px;
    height: auto;
}

/* Títulos */
h1 {
    color: var(--primary-blue);
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    color: var(--gray);
    font-size: 16px;
    margin-bottom: 30px;
}

/* Formulários */
.login-form,
.signup-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: var(--white);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(215, 96, 48, 0.1);
}

/* Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-container span {
    color: var(--gray);
}

/* Botões */
.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-orange);
    color: var(--white);
    width: 100%;
    margin-top: 20px;
}

.btn-primary:hover {
    background-color: #C05020;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(215, 96, 48, 0.3);
}

/* Links */
a {
    color: var(--primary-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #C05020;
    text-decoration: underline;
}

/* Footer do formulário */
.form-footer {
    text-align: center;
    margin-top: 30px;
}

.form-footer p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 10px;
}

.forgot-password {
    font-size: 14px;
    display: inline-block;
    margin-top: 10px;
}

/* Alertas */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-error {
    background-color: #FEE;
    color: var(--error);
    border: 1px solid #FCC;
}

.alert-error a {
    color: var(--error);
    text-decoration: underline;
    font-weight: 600;
}

.alert-error a:hover {
    color: #B02A37;
}

.alert-success {
    background-color: #EFE;
    color: var(--success);
    border: 1px solid #CFC;
}

/* Círculos decorativos */
.decorative-circles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.circle-orange {
    width: 200px;
    height: 200px;
    background-color: var(--primary-orange);
    bottom: -100px;
    left: -100px;
}

.circle-blue {
    width: 150px;
    height: 150px;
    background-color: var(--primary-blue);
    top: -75px;
    right: -75px;
}

/* Responsividade */
@media (max-width: 768px) {
    .login-container,
    .signup-container {
        flex-direction: column;
        max-width: 400px;
    }
    
    .login-left,
    .signup-left {
        display: none;
    }
    
    .login-right,
    .signup-right {
        padding: 40px 30px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .circle-orange {
        width: 120px;
        height: 120px;
        bottom: -60px;
        left: -60px;
    }
    
    .circle-blue {
        width: 100px;
        height: 100px;
        top: -50px;
        right: -50px;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-right > *,
.signup-right > * {
    animation: fadeIn 0.6s ease-out forwards;
}

.login-right > *:nth-child(1) { animation-delay: 0.1s; }
.login-right > *:nth-child(2) { animation-delay: 0.2s; }
.login-right > *:nth-child(3) { animation-delay: 0.3s; }
.login-right > *:nth-child(4) { animation-delay: 0.4s; }
.login-right > *:nth-child(5) { animation-delay: 0.5s; }