﻿:root {
/*     --primary-color: #0d6efd;
    --secondary-color: #6c757d;*/
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    background-image: url(Content/imagenes/bg.jpg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    background: var(--primary-color);
    color: white;
    padding: 30px 20px;
    text-align: center;
    position: relative;
}

    .login-header::before {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 20px solid transparent;
        border-right: 20px solid transparent;
        border-top: 20px solid var(--primary-color);
    }

.system-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-container {
    text-align: center;
    padding: 30px 20px 20px;
}

    .logo-container img {
        max-height: 60px;
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    }

.auth-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.auth-tab {
    flex: 1;
    padding: 15px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: none;
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    position: relative;
}

    .auth-tab:hover {
        background: #e9ecef;
        color: var(--primary-color);
    }

    .auth-tab.active {
        background: white;
        color: var(--primary-color);
        font-weight: 600;
    }

        .auth-tab.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--primary-color);
        }

.auth-content {
    padding: 30px;
}

.auth-panel {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

    .auth-panel.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.auth-description {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    border-right: 4px solid var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.input-group {
    position: relative;
    margin-bottom: 15px;
    display: flex;
    align-items: stretch;
}

.input-group-text {
    width: 45px;
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    border-right: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px 0 0 10px;
    z-index: 1;
    flex-shrink: 0;
}

.form-control {
    padding: 15px 15px 15px 15px;
    border: 2px solid #e9ecef;
    border-left: none;
    border-radius: 0 10px 10px 0;
    font-size: 1rem;
    transition: all 0.3s ease;
    flex: 1;
    box-sizing: border-box;
}

    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
        outline: none;
        z-index: 2;
    }

        .form-control:focus + .input-group-text,
        .input-group:focus-within .input-group-text {
            border-color: var(--primary-color);
            background: var(--primary-color);
        }

.btn-auth {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 10px;
}

.btn-domain {
    background: var(--primary-color);
    color: white;
}

    .btn-domain:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(25, 135, 84, 0.4);
        color: white;
        text-decoration: none;
    }

.btn-azure {
    background: var(--secondary-color);
    color: var(--primary-color);
}

    .btn-azure:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 120, 212, 0.4);
        color: var(--primary-color);
        text-decoration: none;
    }

.btn-auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.validation-error {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 5px;
    padding-left: 10px;
}

.footer-info {
    padding: 20px 30px;
    background: #f8f9fa;
    text-align: center;
    font-size: 0.8rem;
    color: #6c757d;
    border-top: 1px solid #dee2e6;
}

.icon-prefix {
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 576px) {
    .login-container {
        padding: 10px;
    }

    .login-card {
        margin: 0;
        border-radius: 15px;
    }

    .auth-content {
        padding: 20px;
    }

    .system-title {
        font-size: 1.25rem;
    }

    .auth-tab {
        padding: 12px 15px;
        font-size: 0.85rem;
    }
}

/* Animaciones para los botones */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

.loading {
    pointer-events: none;
}
