:root {
    --primario-oscuro: #5D4037;
    --acento: #D7CCC8;
    --texto-oscuro: #3E2723;
    --texto-claro: #ffffff;
    --fondo: #F5F5F5;
}

body {
    background-color: var(--fondo);
}
.login-container,
.register-container {
    margin-top: 40px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.login-card,
.register-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: row;
}
.login-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 300px;
}

.register-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 300px;
}

.login-image::before,
.register-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(93, 64, 55, 0.7); 
}

.login-form,
.register-form {
    flex: 1;
    padding: 3rem;
}

.login-header,
.register-header {
    text-align: center;
    margin-bottom: 2rem;
    min-height: 100px; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-header h2,
.register-header h2 {
    color: var(--primario-oscuro);
    font-weight: 600;
    margin-top: 15px;
}

.form-floating {
    margin-bottom: 1.5rem;
}

.form-control:focus {
    border-color: var(--primario-oscuro);
    box-shadow: 0 0 0 0.25rem rgba(93, 64, 55, 0.25);
}

.login-footer,
.register-footer {
    text-align: center;
    margin-top: 2rem;
}

.login-footer a,
.register-footer a {
    color: var(--primario-oscuro);
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover,
.register-footer a:hover {
    color: #4E342E;
}

.social-login,
.social-register {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 1rem;
}

.social-login a,
.social-register a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: var(--primario-oscuro);
    transition: all 0.3s ease;
}

.social-login a:hover,
.social-register a:hover {
    background-color: var(--primario-oscuro);
    color: white;
}


.login-logo,
.register-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-logo img,
.register-logo img {
    height: 70px;
}


.login-quote,
.register-quote {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    padding: 0 2rem;
    color: white;
    text-align: center;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); 
}

.login-quote h3,
.register-quote h3 {
    font-weight: 600;
    font-size: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row > div {
    flex: 1;
}

/* Error message styling */
.error-message {
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    border-radius: 6px;
}

.btn-dynamic {
    background: linear-gradient(45deg, var(--primario-oscuro), #8D6E63);
    color: var(--texto-claro) !important; 
    border: none;
    padding: 15px 0; 
    border-radius: 25px;
    font-weight: 700; 
    font-size: 1.1rem; 
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1;
    letter-spacing: 0.5px; 
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); 
}

.btn-dynamic:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #8D6E63, #5D4037);
    transition: all 0.6s ease-in-out;
    z-index: -1;
}

.btn-dynamic:hover:before {
    left: 0;
}

.btn-dynamic:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(93, 64, 55, 0.4);
}

.btn-dynamic:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(93, 64, 55, 0.4);
}

.btn-icon {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-dynamic:hover .btn-icon {
    transform: translateX(5px);
}

.btn-pulse {
    animation: pulse 2s infinite;
}



@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(93, 64, 55, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(93, 64, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(93, 64, 55, 0);
    }
}

.btn-dynamic .ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
}

@keyframes ripple {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .login-card,
    .register-card {
        flex-direction: column;
    }
    
    .login-image {
        min-height: 200px;
    }
    
    .login-form {
        padding: 2rem;
    }
    
    .register-card {
        flex-direction: column-reverse;
    }
    
    .register-image {
        min-height: 200px;
    }
    
    .register-form {
        padding: 2rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}