* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Roboto', sans-serif;
    height: 100vh;
    display: flex;
    background:
                url('/public/recursos/fondo-login.png') center/cover no-repeat;
}

.container {
    display: flex;
    width: 100%;
    height: 100%;
}

.left-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.right-section {
    width: 480px;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 50px;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
}

.logo {
    width: 140px;
    height: auto;
    margin-bottom: 30px;
}

h1 {
    color: #003d7a;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 50px;
    font-family: montserrat, sans-serif;
}

.form-container {
    width: 100%;
    max-width: 380px;
}

.input-group {
    position: relative;
    margin-bottom: 8px;
}

.input-group.error input {
    background: #ffebee;
    border: 2px solid #e53935;
}

.input-group.error .input-icon {
    color: #e53935;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #003d7a;
    font-size: 18px;
    transition: color 0.3s;
}

input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid transparent;
    background: #f0f4f8;
    border-radius: 50px;
    font-size: 15px;
    color: #333;
    outline: none;
    transition: all 0.3s;
}

input::placeholder {
    color: #9ca3af;
}

input:focus {
    background: #e5ebf1;
    border-color: #003d7a;
}

.password-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 20px;
    padding: 5px;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: #003d7a;
}

.error-message {
    text-align: center;
    color: #e53935;
    font-size: 17px;
    font-weight: bold;
    margin: 5px 0 15px 20px;
    display: block;
    min-height: 18px;
    transition: opacity 0.3s;
}

.error-message.show {
    opacity: 1;
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: #003d7a;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s;
}

.btn-login:hover:not(:disabled) {
    background: #002d5c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 61, 122, 0.3);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: #76797e;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #8e8f91;
}

.divider span {
    padding: 0 15px;
}

.btn-google {
    width: 100%;
    padding: 14px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #333;
    transition: all 0.3s;
}

.btn-google:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.google-icon {
    width: 20px;
    height: 20px;
}

.btn-back {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #003d7a;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    z-index: 1000;
}

.btn-back i {
    font-size: 16px;
}

.btn-back:hover {
    background: #002d5c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 61, 122, 0.3);
}

@media (max-width: 768px) {
    .left-section {
        display: none;
    }

    .right-section {
        width: 100%;
    }
}