/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

/* Contenedor principal */
.login-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 850px;
    padding: 40px;
}

/* Encabezado */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.company-logo {
    margin-bottom: 20px;
}

.company-logo img {
    height: 140px;
}

.login-header h1 {
    color: #1a365d;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Información OAuth */
.oauth-info {
    background-color: #f0f7ff;
    border: 1px solid #d1e3ff;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    text-align: left;
}

.oauth-app {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #2d5aa0;
    font-weight: 500;
}

.oauth-app svg {
    margin-right: 8px;
}

.client-id {
    font-size: 14px;
    color: #4a5568;
    padding-left: 24px;
}

/* Mensaje de error */
.error-message {
    background-color: #fed7d7;
    color: #c53030;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    font-size: 14px;
}

.error-message svg {
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Formulario */
.login-form {
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon svg {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}

.input-with-icon input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    color: #2d3748;
    background-color: #fafbfc;
    transition: all 0.3s ease;
}

.input-with-icon input:focus {
    outline: none;
    border-color: #3182ce;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.input-with-icon input::placeholder {
    color: #a0aec0;
}

/* Opciones del formulario */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #4a5568;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    height: 18px;
    width: 18px;
    background-color: white;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #3182ce;
    border-color: #3182ce;
}

.checkmark:after {
    content: "";
    display: none;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -1px;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.forgot-password {
    color: #3182ce;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: #2c5282;
    text-decoration: underline;
}

/* Botón de login */
.login-button {
    width: 100%;
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.login-button:hover {
    background: linear-gradient(135deg, #2c5282 0%, #1a365d 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

.login-button svg {
    margin-left: 8px;
}

/* Divisor */
.divider {
    position: relative;
    text-align: center;
    margin-bottom: 25px;
}

.divider:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e2e8f0;
}

.divider span {
    position: relative;
    display: inline-block;
    padding: 0 15px;
    background-color: white;
    color: #a0aec0;
    font-size: 14px;
}

/* Login alternativo */
.alternative-login {
    text-align: center;
}

.alternative-login p {
    color: #718096;
    font-size: 14px;
    margin-bottom: 10px;
}

.register-link {
    display: inline-block;
    color: #3182ce;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 14px;
}

.register-link:hover {
    background-color: #f7fafc;
    border-color: #3182ce;
}

/* Footer */
.login-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
    margin-bottom: 15px;
}

.footer-link {
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #3182ce;
}

.footer-link svg {
    margin-right: 6px;
}

/* Copyright */
.copyright {
    text-align: center;
    color: #a0aec0;
    font-size: 12px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 25px;
    }
    
    .login-footer {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}