/* Login Page - Diseño basado en PDF Figma */
/* Sistema de colores está en common-styles.css */

.login-page {
    min-height: 95vh;
    background: var(--COLOR-1, #FFE6C8);
    display: flex;
    flex-direction: column;
    font-family: "Azo Sans Test", 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 1920px;
    padding-top: 196px;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Específico para página de reset password - Sin padding-top */
.reset-password-page .login-container {
    padding-top: 155px;
}

/* Header Section - Logo y Título */
.login-header {
    text-align: center;
    
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 853px;
    height: auto;
    min-height: 315px;
}

.login-logo {
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Imagen responsiva - Desktop */
.login-logo {
    content: url('../../img/Logo and Title Container.svg');
}

/* Imagen responsiva - Mobile */
@media (max-width: 768px) {
    .login-logo {
        content: url('../../img/movil/Logo and Title Container.png');
        max-width: 90%;
        border: none;
        outline: none;
        background: transparent;
        display: block;
    }
}

.platform-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Formulario */
.login-form-wrapper {
    display: flex;
    width: 291px;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

/* Contenedores de campos */
.email-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    align-self: stretch;
        margin-bottom: 20px;
}

.password-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    align-self: stretch;
        margin-bottom: 25px;

}

.form-control {
    width: 100%;
    height: 30px;
    align-self: stretch;
    border-radius: 6px;
    border: 1px solid var(--COLOR-2, #133121);
    padding: 0 1rem;
    font-family: "Azo Sans Test";
    font-size: 1rem;
    background: var(--COLOR-1, #FFE6C8);
    transition: all 0.3s ease;
    outline: none;
    font-weight: 400;
    color: var(--COLOR-2, #133121);
}

.form-control:focus {
    border-color: var(--COLOR-2, #133121);
    box-shadow: 0 0 0 0.2rem rgba(19, 49, 33, 0.15);
    background: var(--COLOR-1, #FFE6C8);
}

/* Labels separados */
.field-label {
    color: var(--COLOR-2, #133121);
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0;
    padding: 0;
}

/* Error Messages */
.error-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 400;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

/* Botón Login */
.btn-login {
    display: flex;
  padding: 5px 10px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  align-self: stretch;
  border-radius: 4px;
  background: var(--COLOR-3, #F27017);
  width: 100%;
  border: none;
  color: white;
  font-size: 18px;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  outline: none;
  line-height: normal;
  letter-spacing: 0.7px;
}

.btn-login:hover {
    background: #e66310;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(242, 112, 23, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

/* Enlaces adicionales */
.login-links {
    text-align: center;
    margin-top: 2rem;
}

.forgot-link {
    color: #0d6efd;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 1rem;
}

.forgot-link:hover {
    color: #0b5ed7;
    text-decoration: underline;
}

.register-text {
    color: #6c757d;
    font-size: 0.95rem;
    font-weight: 400;
}

.register-link {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link:hover {
    color: #0b5ed7;
    text-decoration: underline;
}

/* Footer con enlaces legales */
.login-footer {
    background: #f8f9fa;
    padding: 2rem;
    border-top: 1px solid #dee2e6;
    margin-top: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.footer-links a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #0d6efd;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .login-container {
        width: 100%;
        padding-top: 150px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .logo-container {
        width: 90%;
        max-width: 700px;
        height: auto;
    }
}

@media (max-width: 1200px) {
    .login-container {
        padding-top: 120px;
    }
    
    .logo-container {
        width: 100%;
        max-width: 600px;
        height: auto;
        gap: 30px;
    }
    
    .login-form-wrapper {
        width: 320px;
    }
}

@media (max-width: 992px) {
    .login-container {
        padding-top: 100px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .logo-container {
        max-width: 500px;
        gap: 25px;
        margin-bottom: 30px;
    }
    
    .login-form-wrapper {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .login-container {
        padding-top: 80px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .logo-container {
        max-width: 400px;
        gap: 20px;
        margin-bottom: 25px;
    }
    
    .login-form-wrapper {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .form-control {
        height: 35px;
        font-size: 14px;
    }
    
    .field-label {
        font-size: 14px;
    }
    
    .btn-login {
        font-size: 16px;
        padding: 8px 16px;
    }
}

@media (max-width: 576px) {
    .login-container {
        padding-top: 60px;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .logo-container {
        max-width: 320px;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .login-form-wrapper {
        width: 100%;
        max-width: 280px;
        gap: 20px;
        margin: 0 auto;
    }
    
    .email-container,
    .password-container {
        margin-bottom: 15px;
    }
    
    .form-control {
        height: 32px;
        font-size: 13px;
        padding: 0 0.8rem;
    }
    
    .field-label {
        font-size: 13px;
    }
    
    .btn-login {
        font-size: 15px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding-top: 40px;
    }
    
    .logo-container {
        max-width: 280px;
    }
    
    .login-form-wrapper {
        max-width: 260px;
        margin: 0 auto;
    }
    
    .form-control {
        height: 30px;
        font-size: 12px;
    }
    
    .field-label {
        font-size: 12px;
    }
    
    .btn-login {
        font-size: 14px;
    }
    
    .forgot-password-link {
        font-size: 12px;
    }
}

/* Forgot Password Link */
.forgot-password-link {
    color: var(--COLOR-2, #133121);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-password-link:hover {
    color: var(--COLOR-3, #F27017);
    text-decoration: underline;
}

/* Reset Password Description */
.reset-password-description {
    text-align: center;
    max-width: 500px;
   
}

.reset-title {
    color: var(--COLOR-2, #133121);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.reset-text {
    color: var(--TEXTO, #606060);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
}

/* Botón volver atrás para perfil - Extiende componente común */
.profile-back-button-container {
    position: relative;
    display: flex;
    width: 100%;
    justify-content: flex-start;
    margin-bottom: var(--SPACE-MD);
}

.profile-back-button {
    /* Hereda de .mobile-nav-button con modificaciones específicas */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--BORDER-RADIUS-MD);
    text-decoration: none;
    transition: var(--TRANSITION-NORMAL);
    box-shadow: var(--SHADOW-MD);
    backdrop-filter: blur(10px);
}

.profile-back-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    box-shadow: var(--SHADOW-LG);
}

.profile-back-icon {
    transition: var(--TRANSITION-NORMAL);
}

/* Posicionamiento específico para desktop */
@media (min-width: 1025px) {
    .profile-container {
        position: relative;
    }
    
    .profile-back-button-container {
        position: absolute;
        left: -145px;
        top: 4%;
        transform: translateY(-50%);
        width: auto;
        margin-bottom: 0;
    }
}

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container {
    animation: fadeInUp 0.6s ease-out;
}

.login-header {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.reset-password-description {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.login-form-wrapper {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}