﻿
.modal-dialog {
    max-width: 900px;
    width: 90%;
}

.modal-dialog-twoFactor {
    width: 40%;
}

.modal-content {
    border-radius: 15px;
    border: none;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.modal-header-login {
    background: linear-gradient(135deg, #ffa600 0%, #ff8c00 100%);
    color: white;
    border-bottom: none;
    padding: 20px 40px 15px 40px;
    text-align: center;
    position: relative;
}

.modal-title-login {
    font-weight: 300;
    font-size: 28px;
    margin: 0;
    letter-spacing: -0.5px;
}

.modal-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 5px;
    font-weight: 400;
}

.modal-header-login .close {
    color: white;
    opacity: 0.8;
    text-shadow: none;
    font-size: 32px;
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .modal-header-login .close:hover {
        opacity: 1;
        background: rgba(255, 255, 255, 0.2);
        transform: rotate(90deg);
    }

/* Main container with two panels */
.modal-body-container {
    display: flex;
    min-height: 400px;
}

/* Left panel - Login */
.login-panel {
    flex: 2;
    padding: 30px 25px;
    background: #f8f9fa;
    border-right: 2px solid #e9ecef;
}

/* Right panel - Forgot Password */
.forgot-panel {
    flex: 1;
    padding: 30px 20px;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.forgot-panel-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.forgot-panel-subtitle {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 25px;
    line-height: 1.5;
}

.forgot-form {
    margin-bottom: 20px;
}

    .forgot-form .form-control-login {
        margin-bottom: 12px;
        font-size: 13px;
        padding: 10px 12px;
    }

.btn-forgot {
    background: linear-gradient(135deg, #ffa600 0%, #ff8c00 100%) !important;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    width: 100%;
    transition: all 0.3s ease;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .btn-forgot:hover {
        transform: translateY(-1px);
        box-shadow: 0 5px 15px rgba(255, 166, 0, 0.3);
        color: white;
    }

.msg-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 15px;
    color: #155724;
    font-size: 13px;
    margin-top: 15px;
    display: none;
    text-align: center;
}

.msg-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 15px;
    color: #721c24;
    font-size: 13px;
    margin-top: 15px;
    display: none;
    text-align: center;
}

.modal-body-twoFactor {
    padding: 40px 40px 30px 40px;
    background: #f8f9fa;
}

/* Login form */
.form-group-login {
    margin-bottom: 20px;
    position: relative;
}

.form-label-login {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.form-control-login {
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    width: 100%;
}

    .form-control-login:focus {
        border-color: #ffa600;
        box-shadow: 0 0 0 3px rgba(255, 166, 0, 0.1);
        outline: none;
    }

.form-control-login.errored {
    border-color: #dc3545
}
/* .password-toggle {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            color: #6c757d;
            font-size: 16px;
            transition: color 0.3s ease;
        }
        
        .password-toggle:hover {
            color: #ffa600;
        } */
/* Modal buttons */
.btn-primary-login {
    background: linear-gradient(135deg, #ffa600 0%, #ff8c00 100%) !important;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 15px;
    color: white;
}

    .btn-primary-login:hover {
        transform: translateY(-1px);
        box-shadow: 0 5px 15px rgba(255, 166, 0, 0.3);
        color: white;
    }

    .btn-primary-login:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.btn-email-instead {
    background: linear-gradient(45deg, #e9e9e9, #e7e7e7) !important;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 15px;
    color: #ffa600;
}

    .btn-email-instead:hover {
        transform: translateY(-1px);
        box-shadow: 0 5px 15px rgba(255, 166, 0, 0.3);
        color: #ffa600;
    }

    .btn-email-instead:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* Modal footer */
.modal-footer-login {
    background: white;
    border-top: 1px solid #dee2e6;
    padding: 25px 40px;
    text-align: center;
}

.signup-link {
    color: #6c757d;
    font-size: 14px;
}

    .signup-link a {
        color: #ffa600;
        text-decoration: none;
        font-weight: 600;
    }

        .signup-link a:hover {
            text-decoration: underline;
        }

/* Loading state */
.loading {
    position: relative;
}

    .loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 20px;
        height: 20px;
        border: 2px solid #ffffff;
        border-radius: 50%;
        border-top-color: transparent;
        animation: spin 1s ease-in-out infinite;
    }

.btn.loading {
    padding: 20px 0;
}

.need-help {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    font-size: 12px;
    color: #6c757d;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Responsive para el modal con paneles */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 10px;
        max-width: 100%;
        width:auto ;
    }

    .modal-body-container {
        flex-direction: column;
        min-height: auto;
    }

    .login-panel {
        border-right: none;
        border-bottom: 2px solid #e9ecef;
        padding: 30px 25px;
    }

    .modal-body-twoFactor {
        padding-left: 25px;
        padding-right: 25px;
    }

    .forgot-panel {
        padding: 25px 25px 30px 25px;
    }

    .modal-header-login {
        padding: 20px 25px 15px 25px;
    }

    .modal-title-login {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .login-panel,
    .forgot-panel {
        padding: 20px 15px;
    }

    .modal-body-twoFactor {
        padding-left: 20px;
        padding-right: 20px;
    }

    .modal-header-login {
        padding: 15px 20px;
    }
}

/* Animación personalizada del modal */
/*.modal.fade .modal-dialog {
    transform: scale(0.7) translateY(-50px);
    transition: all 0.3s ease-out;
}

.modal.fade.in .modal-dialog {
    transform: scale(1) translateY(0);
}*/
