/* Reset básico e definição da fonte */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #9C616A;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Container principal */
.login-container {
    background-color: #F8EEF0;
    display: flex;
    width: 1310px;
    max-width: 92%;
    height: 920px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Lado esquerdo - A Imagem */
.image-side {
    width: 43%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-color: #8B5A5F;
}

.image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Lado direito - O Formulário */
.form-side {
    width: 55%;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Ícone pequeno no topo */
.icone-login {
    text-align: center;
    margin-bottom: 15px;
}

.icone-login img {
    width: 190px;
    height: auto;
    display: block;
    align-items: baseline;
    
}

.form-side h2 {
    font-size: 42px;
    text-align: center;
    color: #2c2c2c;
    margin-bottom: 45px;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Campos de entrada */
.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group label {
    display: block;
    color: #7a7a7a;
    margin-bottom: 5px;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 14px 0;
    border: none;
    border-bottom: 1px solid #999;
    background: transparent;
    outline: none;
    font-size: 17px;
    color: #333;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-bottom: 2px solid #9C616A;
}

/* Ícone do olho na senha */
.eye-icon {
    position: absolute;
    right: 0;
    bottom: 10px;
    cursor: pointer;
    font-size: 18px;
    color: #555;
    user-select: none;
}

/* Link "Esqueci minha senha" */
.forgot-password {
    display: block;
    text-align: left;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    margin-bottom: 30px;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #9C616A;
    text-decoration: underline;
}

/* Botões */
.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: 500;
}

.btn-primary {
    background-color: #D0A5AC;
    color: #2c2c2c;
    margin-bottom: 25px;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #c08f98;
}

/* Divisor "ou" */
.divider {
    display: flex;
    align-items: center;
    color: #333;
    font-size: 14px;
    margin-bottom: 25px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #999;
}

.divider span {
    padding: 0 15px;
    color: #666;
    font-weight: 500;
}

/* Botão Criar Conta */
.btn-secondary {
    background-color: #D0A5AC;
    color: #2c2c2c;
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: #c08f98;
}

@media (max-width: 1024px) {
    .login-container {
        height: 800px;
        max-height: 90vh;
        max-width: 96%;
    }

    .form-side {
        padding: 45px 40px;
    }

    .form-side h2 {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .icone-login img {
        width: 150px;
    }

    .image-side {
        width: 42%;
    }

    .form-side {
        width: 58%;
    }
}

@media (max-width: 850px) {
    .login-container {
        height: auto;
        min-height: 600px;
        max-height: none;
        flex-direction: column;
        max-width: 500px;
        border-radius: 16px;
    }

    .image-side {
        width: 100%;
        height: 200px;
        min-height: 180px;
    }

    .image-side img {
        object-position: center 30%;
    }

    .form-side {
        width: 100%;
        padding: 35px 30px 40px;
    }

    .form-side h2 {
        font-size: 28px;
        margin-bottom: 25px;
    }

    .icone-login img {
        width: 130px;
    }

    .btn {
        padding: 14px;
        font-size: 15px;
    }

    .input-group input {
        font-size: 16px;
        padding: 12px 0 8px 0;
    }
}

/* ============================================= */
/* RESPONSIVIDADE - TELAS PEQUENAS (celulares) */
/* ============================================= */
@media (max-width: 480px) {
    body {
        padding: 12px;
        background: linear-gradient(135deg, #9C616A 0%, #b87a84 100%);
    }

    .login-container {
        max-width: 100%;
        border-radius: 14px;
        min-height: 500px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }

    .image-side {
        height: 150px;
        min-height: 130px;
    }

    .image-side img {
        object-position: center 20%;
    }

    .form-side {
        padding: 25px 20px 30px;
    }

    .form-side h2 {
        font-size: 22px;
        margin-bottom: 20px;
        letter-spacing: 0.3px;
    }

    .icone-login {
        margin-bottom: 5px;
    }

    .icone-login img {
        width: 100px;
    }

    .input-group {
        margin-bottom: 16px;
    }

    .input-group label {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .input-group input {
        font-size: 14px;
        padding: 10px 0 6px 0;
    }

    .eye-icon {
        font-size: 16px;
        bottom: 8px;
    }

    .forgot-password {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .btn {
        padding: 12px;
        font-size: 14px;
        border-radius: 10px;
    }

    .btn-primary {
        margin-bottom: 18px;
    }

    .divider {
        font-size: 12px;
        margin-bottom: 18px;
    }

    .divider span {
        padding: 0 12px;
        font-size: 11px;
    }
}

/* ============================================= */
/* RESPONSIVIDADE - TELAS MUITO PEQUENAS */
/* ============================================= */
@media (max-width: 380px) {
    .form-side {
        padding: 18px 14px 22px;
    }

    .form-side h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .icone-login img {
        width: 80px;
    }

    .input-group input {
        font-size: 13px;
        padding: 8px 0 5px 0;
    }

    .input-group label {
        font-size: 12px;
    }

    .btn {
        padding: 10px;
        font-size: 13px;
    }

    .forgot-password {
        font-size: 12px;
        margin-bottom: 15px;
    }

    .eye-icon {
        font-size: 14px;
        bottom: 6px;
    }
}

/* ============================================= */
/* RESPONSIVIDADE - TELAS GRANDES (desktops) */
/* ============================================= */
@media (min-width: 1400px) {
    .login-container {
        width: 1310px;
        height: 920px;
        max-height: 90vh;
        border-radius: 24px;
    }

    .form-side {
        padding: 70px 65px;
    }

    .form-side h2 {
        font-size: 46px;
        margin-bottom: 50px;
    }

    .icone-login img {
        width: 220px;
    }

    .input-group input {
        font-size: 19px;
        padding: 16px 0 12px 0;
    }

    .input-group label {
        font-size: 15px;
    }

    .btn {
        padding: 18px;
        font-size: 17px;
        border-radius: 14px;
    }

    .btn-primary {
        margin-bottom: 30px;
    }

    .divider {
        margin-bottom: 30px;
    }

    .forgot-password {
        font-size: 15px;
        margin-bottom: 35px;
    }
}

@media (min-width: 1800px) {
    .login-container {
        width: 1500px;
        height: 1000px;
        max-height: 85vh;
    }

    .form-side {
        padding: 80px 75px;
    }

    .form-side h2 {
        font-size: 52px;
    }

    .icone-login img {
        width: 250px;
    }

    .input-group input {
        font-size: 21px;
    }

    .btn {
        padding: 20px;
        font-size: 18px;
    }
}

/* ============================================= */
/* ANIMAÇÕES E TOQUES FINAIS */
/* ============================================= */

/* Transição suave para o container */
.login-container {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Efeito de foco nos inputs */
.input-group input:focus {
    border-bottom-color: #9C616A;
    border-bottom-width: 2px;
}

/* Scroll suave para a página */
html {
    scroll-behavior: smooth;
}

/* Melhorar acessibilidade */
.input-group input:focus-visible {
    outline: 2px solid #9C616A;
    outline-offset: 2px;
}

.btn:focus-visible {
    outline: 2px solid #6d4549;
    outline-offset: 3px;
}

/* Placeholder estilizado */
.input-group input::placeholder {
    color: #bbb;
    font-weight: 300;
    font-size: 0.9em;
}