@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap');

/* ================= CONFIGURACIÓN BÁSICA ================= */
* {
    box-sizing: border-box;
    font-family: 'Nunito', Arial, sans-serif;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: #fff;
}

::selection {
    background-color: #c3e8dc;
}

/* ================= COMPONENTES DE NAVEGACIÓN ================= */
.btnperfil {
    color: #86bca4;
    border: 2px solid #86bca4;
    border-radius: 50px;
    padding: 6px 20px;
    transition: all 0.3s ease;
    margin-left: 12px;
    text-decoration: none;
    display: inline-block;
}

.btnperfil:hover {
    background-color: #86bca4;
    color: #fff;
    text-decoration: none;
}

.back {
    font-size: 26px;
    text-decoration: none;
    color: #000;
    transition: transform 0.2s ease;
    display: inline-block;
}

.back:hover {
    transform: translateX(-5px);
    color: #86bca4;
}

/* ================= CONTENEDOR PRINCIPAL ================= */
.login-container {
    display: flex;
    min-height: 100vh;
}

/* PANEL IZQUIERDO */
.left-panel {
    width: 45%;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.dog-img {
    width: 100%;
    max-width: 700px;
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

/* PANEL DERECHO */
.right-panel {
    width: 55%;
    background: #dff1e7;
    padding: 80px 60px;
    border-top-left-radius: 60px;
    border-bottom-left-radius: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1 {
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

/* ================= ELEMENTOS DE FORMULARIO ================= */
input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 30px;
    border: 2px solid #aaa;
    margin-bottom: 20px;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus {
    outline: none;
    border-color: #86bca4;
    box-shadow: 0 0 8px rgba(134, 188, 164, 0.2);
}

.nuevacon {
    font-size: 20px;
    font-family: 'Nunito', sans-serif;
    margin-bottom: 15px;
    color: #2e2a29;
}

.password {
    position: relative;
}

.eye {
    position: absolute;
    right: 20px;
    top: 15px; /* Ajustado para mejor alineación visual */
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.eye:hover {
    color: #86bca4;
}

.forgot {
    display: block;
    margin-bottom: 30px;
    font-size: 14px;
    color: #000;
    text-align: right;
    text-decoration: none;
}

.forgot:hover {
    text-decoration: underline;
}

/* ================= BOTONES DE ACCIÓN ================= */
.btn-login {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 30px;
    background: #a3d5c7;
    color: #2e2a29;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 30px;
    transition: background 0.3s, transform 0.1s;
}

.btn-login:hover {
    background: #86bca4;
    color: #fff;
}

.btn-login:active {
    transform: scale(0.98);
}

.btn-google {
    width: 100%;
    padding: 14px;
    border-radius: 30px;
    border: 2px solid #aaa;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s;
}

.btn-google:hover {
    background: #f8f8f8;
}

.btn-google img {
    width: 20px;
}

/* ================= DIVISORES Y TEXTOS AUXILIARES ================= */
.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.divider span {
    flex: 1;
    height: 1px;
    background: #bbb;
}

.divider p {
    font-size: 14px;
    margin: 0;
    color: #666;
}

.register {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
}

.register a {
    color: #86bca4;
    font-weight: 700;
    text-decoration: none;
}

.register a:hover {
    text-decoration: underline;
}

/* ================= DISEÑO RESPONSIVO ================= */
@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
    }

    .left-panel {
        width: 100%;
        padding: 30px;
    }

    .dog-img {
        display: none;
    }

    .right-panel {
        width: 100%;
        padding: 40px 30px;
        border-radius: 0;
        background-color: #fff;
    }

    input {
        background-color: #f9f9f9;
    }
}