@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800;900&display=swap');

.login-page-container {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #c13815;
    background-image: url('../../patronFondo.png');
    background-size:  cover;
    background-position:  center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow-y: auto;
    font-family: 'Figtree', 'Segoe UI', Arial, sans-serif;
    z-index: 9999;
}


/* Slogan  */
.login-slogan {
    position: absolute;
    right: 3%;
    top: 50%;
    transform: translateY(-80%);
    pointer-events: none;
    width: 100%;
    max-width: 240px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  
}

.login-slogan img {
    width: 100%;
    height: auto;
    object-fit: contain;
}


.login-card {
    background: #ffffff;
    box-sizing: border-box;
    width: clamp(340px, 98vw, 380px); 
    border-radius: 10px; 
    
 
    padding: clamp(16px, 4.5vh, 21px) clamp(20px, 4vw, 30px);
    
    box-shadow: 0 20px 45px rgba(15, 4, 0, 0.22);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    z-index: 2;
}

.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: clamp(8px, 2vh, 10px); 
}

.login-logo img {
    height: clamp(70px, 5.5vh, 55px); 
    width: auto;
    object-fit: contain;
}

.logo-divider {
    width: 60%; 
    height: 1px;
    background-color: #A9A9A9;
    margin: 0 auto clamp(8px, 1.2vh, 10px); 
}

.login-subtitle {
    text-align: center;
    color: #4a3f3b;
    font-size: clamp(13.5px, 1.9vw, 14.5px); 
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: clamp(14px, 2.5vh, 18px);
}

.form-group-custom {
    margin-bottom: clamp(10px, 2vh, 12px); 
    display: flex;
    flex-direction: column;
}

.label-custom {
    font-size: 11.5px; 
    font-weight: 500;
    color: #2b211d;
    margin-bottom: 1px !important; 
    text-align: left;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper .input-icon-left {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #c13815;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.input-wrapper .input-icon-right {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #c13815;
    display: flex;
    align-items: center;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

/* Inputs  */
.login-card .form-control {
    width: 100% !important;
    height: clamp(38px, 5vh, 40px) !important;
    box-sizing: border-box !important; 
    background-color: #fbe9df !important;
    border: 1px solid #EFBB99!important;
    border-radius: 10px !important;
    padding: 8px 14px 8px 40px !important;
    font-size: clamp(12.5px, 1.8vw, 13.5px) !important;
    font-weight: 500 !important;
    color: #2b211d !important;
    font-family: 'Figtree', sans-serif !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

.login-card .form-control::placeholder {
    color: #b1a39d !important;
    opacity: 0.8;
}

.login-card .form-control:focus {
    background-color: #ffffff !important;
    border-color: #e07a3c !important;
    box-shadow: 0 0 0 3px rgba(224, 122, 60, 0.15) !important;
}

.form-options {
    display: flex;
    justify-content: space-between;
    font-size: clamp(10.5px, 1.5vw, 11px);
    margin-top: -4px;
    margin-bottom: clamp(16px, 2.5vh, 20px); 
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 1px;
    color: #7c6f69;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input {
    accent-color: #e07a3c;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.forgot-link {
    color: #7c6f69;
    text-decoration: none;
    font-weight: 600;
}

.forgot-link:hover {
    color: #c13815;
    text-decoration: underline;
}

/* Botón ingresar */
.btn-ingresar {
       width: clamp(195px, 50%, 165px); 
    height: clamp(38px, 5vh, 40px); 
       margin-left: auto;
    margin-right: auto;
    border: none;
    border-radius: 5px;
    background: linear-gradient(135deg, #e07a3c, #c13815);
    color: #ffffff;
    font-size: clamp(12.5px, 1.8vw, 13.5px);
    font-weight: 600;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.3s ease;
   box-shadow: 0 6px 15px rgba(193, 56, 21, 0.3); 
    margin-bottom: clamp(8px, 2vh, 9px); 
    display: flex;
    align-items: center;
    justify-content: center; 
}

.btn-ingresar:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(193, 56, 21, 0.32);
    filter: brightness(1.05);
}

.btn-ingresar:active {
    transform: translateY(0);
}

.register-text {
    text-align: center;
    font-size: clamp(13.5px, 1.9vw, 14px);
    color: #7c6f69;
    font-weight: 600;
    margin-bottom: clamp(14px, 2.5vh, 18px); 
}

.register-link {
    color: #c13815;
    font-weight: 800;
    text-decoration: none;
}

.register-link:hover {
    text-decoration: underline;
}

.social-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(10px, 2vh, 12px);
}

.divider-line {
    flex: 1;
    height: 1px;
    background-color: #C13815;
}

.divider-text {
    font-size: clamp(10.5px, 1.5vw, 11px);
    color: #474747;
    font-weight: 400;
    padding: 0 10px;
    white-space: nowrap;
}

/* Botones de redes adaptativos y pequeños */
.social-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: clamp(14px, 2.5vh, 18px); 
}

.social-btn {
    width: clamp(32px, 4.5vh, 34px); 
    height: clamp(32px, 4.5vh, 34px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eadbd4;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-btn svg {
    width: clamp(18px, 2vh, 19px);
    height: clamp(18px, 2vh, 19px);
}

.social-btn:hover {
    transform: scale(1.06);
}

.social-btn.facebook {
    color: #1877f2;
    border-color: rgba(24, 119, 242, 0.2);
}
.social-btn.facebook:hover {
    background-color: rgba(24, 119, 242, 0.05);
}

.social-btn.google {
    border-color: rgba(0, 0, 0, 0.1);
}
.social-btn.google:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.social-btn.apple {
    color: #000000;
    border-color: rgba(0, 0, 0, 0.1);
}

.social-btn.apple img {
    height: 20px;
    width: 18px;
    transform: translateY(-2px);
}
.social-btn.apple:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.social-btn.microsoft {
    border-color: rgba(0, 0, 0, 0.1);
}
.social-btn.microsoft:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.help-link-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: clamp(11.5px, 1.6vw, 12.5px);
    color: #4a3f3b; 
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s;
}
.help-link svg {
    color: #C13815; 
    transition: transform 0.2s;
}

.help-link:hover {
    color: #c13815;
}

.alert-custom {
    padding: 10px;
    border-radius: 10px;
    font-size: clamp(11.5px, 1.6vw, 12.5px);
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.alert-custom-danger {
    background-color: #fde8e7;
    color: #c13815;
    border: 1px solid #f6c4c2;
}

.alert-custom-success {
    background-color: #e8f7f0;
    color: #10b981;
    border: 1px solid #c2ecd9;
}

/* Ocultar slogan en pantallas medianas y móviles */
@media (max-width: 992px) {
    .login-slogan {
        display: none;
    }
}