@import url("https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Radio+Canada:ital,wght@0,300..700;1,300..700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

:root {
    --primary-color: #922529;
    --primary-hover: #7a1f22;
    --secondary-color: #5d5d5d;
}

body {
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Radio Canada", sans-serif;
    padding: 20px;
    /* previene cortes en móviles */
    box-sizing: border-box;
}

.login-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(146, 37, 41, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 480px;
    margin: 20px auto;
}

.logo-section {
    background: linear-gradient(135deg,
            var(--primary-color) 0%,
            var(--primary-hover) 100%);
    color: white;
    padding: 40px 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 90%;
}

.logo-circle {
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.logo-circle img {
    height: 95%;
}

.logo-section h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.logo-section p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.6;
}

.form-section {
    padding: 40px;
}

.form-title {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 40px;
}

.form-label {
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 15px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(146, 37, 41, 0.1);
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 16px;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(146, 37, 41, 0.3);
}

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

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

.forgot-password:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.home-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s;
}

.home-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #e0e0e0;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #999;
    font-size: 14px;
}

.register-link {
    text-align: center;
    margin-top: 25px;
    color: #666;
    font-size: 14px;
}

.register-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

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

@media (min-width: 972px) {
    .login-container {
        max-width: 900px;
    }
}

/* Ajustes para transiciones más suaves entre resoluciones */
@media (max-width: 991px) {
    .form-section {
        padding: 30px 20px;
    }

    .logo-section h1 {
        font-size: 24px;
    }

    .logo-section p {
        font-size: 13px;
    }

    .logo-circle {
        width: 120px;
        height: 120px;
        margin-bottom: 20px;
    }
}

@media (min-width: 767px) and (max-width: 991px) {
    .form-title {
        font-size: 24px;
    }
}

.social-buttons a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 9999px;
    padding: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.7;
    color: #666666;
    margin: 0px;
    transition: all 0.4s;
    -webkit-transition: all 0.4s;
}

.social-buttons a:hover {
    color: #818181;
}

.btn-outline-secondary {
    border-color: #e0e0e0;
    color: #666;
    border-left: none;
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #e0e0e0;
    color: #333;
}

.input-group .form-control:focus+.btn-outline-secondary {
    border-color: var(--primary-color);
}

.icon-lg {
    width: 48px !important;
    height: 48px !important;
}

.select2-container--default .select2-selection--single {
    height: calc(2.375rem + 2px);
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
}