/* Authentication UI Style - SISclientes Theme */
:root {
    --primary: #2a5298;
    --primary-light: #4e73df;
    --primary-hover: #1e3c72;
    --bg-gradient: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
    --card-bg: rgba(255, 255, 255, 0.95);
    --border: rgba(30, 60, 114, 0.1);
    --text-main: #2c3e50;
    --text-muted: #7f8c8d;
    --shadow: 0 10px 30px rgba(30, 60, 114, 0.08);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    overflow-x: hidden;
    color: var(--text-main);
}

.blobs {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    top: 0;
    left: 0;
}

.blob {
    position: absolute;
    background: var(--primary-light);
    filter: blur(120px);
    border-radius: 50%;
    opacity: 0.1;
    animation: move 25s infinite alternate;
}

@keyframes move {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(150px, 150px);
    }
}

.auth-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 45px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.6s ease both;
}

.brand-logo {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 5px;
    color: var(--primary);
    text-align: center;
}

.brand-logo span {
    color: #e74c3c;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 35px;
    text-align: center;
    font-weight: 500;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    margin-bottom: 22px;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 1.1rem;
}

.form-control {
    background: #fdfdfd !important;
    border: 2px solid #e9ecef !important;
    border-radius: 10px !important;
    padding: 12px 16px 12px 48px !important;
    height: auto !important;
    color: var(--text-main) !important;
    font-size: 0.95rem !important;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-light) !important;
    background: #fff !important;
    box-shadow: 0 5px 15px rgba(78, 115, 223, 0.1) !important;
}

.btn-primary {
    background: var(--primary);
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-weight: 800;
    font-size: 1rem;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s;
    box-shadow: 0 8px 16px rgba(30, 60, 114, 0.2);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.forgot-link,
.back-link,
.footer-text a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}

.forgot-link:hover,
.back-link:hover,
.footer-text a:hover {
    color: var(--primary);
    text-decoration: underline;
    transform: translateX(-3px);
}

.forgot-link:hover {
    transform: translateY(-1px);
}


.footer-text {
    margin-top: 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.alert {
    background: rgba(231, 76, 60, 0.05);
    border: 1px solid rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 25px;
}

.custom-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-right: 12px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 30px 20px;
        margin: 15px;
    }
}

/* Modal Popup Core - Ensuring it behaves as a popup */
.modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 9999 !important;
    display: none !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    outline: 0;
    background: rgba(15, 23, 42, 0.6) !important;
    /* Darker backdrop */
    backdrop-filter: blur(8px);
}

.modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}


.modal-dialog {
    width: 100%;
    max-width: 550px;
    margin: 1.75rem auto;
    position: relative;
    pointer-events: none;
    animation: zoomIn 0.3s ease both;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content {
    pointer-events: all;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
}


.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px 30px;
    background: var(--bg-gradient);
}

.modal-title {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.2rem;
}

.modal-body {
    padding: 30px;
    color: var(--text-main);
    font-size: 0.9rem;
    line-height: 1.8;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-body h6 {
    color: var(--primary);
    font-weight: 700;
    margin: 20px 0 10px 0;
    font-size: 1rem;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 30px;
    background: #fcfcfc;
}

.modal-backdrop.show {
    opacity: 0.5;
    backdrop-filter: blur(4px);
}

.close {
    font-size: 1.5rem;
    color: var(--text-muted);
    opacity: 0.7;
    transition: all 0.2s;
}

.close:hover {
    color: #e74c3c;
    opacity: 1;
}

/* Custom Scrollbar for Modal Body */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #999;
}