:root {
    --primary: #6f42c1;
    --primary-dark: #5a32a3;
    --primary-hover: #533285;
    --primary-light: rgba(111, 66, 193, 0.1);
}

/* Estilos para el header de autenticación */
.auth-header {
    background: linear-gradient(135deg, #6f42c1 0%, #8a5cf3 100%);
    padding: 1rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.2);
    border-radius: 0 0 15px 15px;
}

.auth-logo-badge {
    width: 60px;
    height: 60px;
    background-color: white;
    color: var(--primary);
    font-size: 28px;
    font-weight: 600;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.auth-site-title {
    color: white;
    font-weight: 600;
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
}

.auth-site-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: normal;
}

/* Estilos para las tarjetas de autenticación */
.auth-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(111, 66, 193, 0.15);
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-top: 5px solid var(--primary);
    position: relative;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(111, 66, 193, 0.05), transparent);
    border-radius: 15px 15px 0 0;
    z-index: 0;
}

.auth-title {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    color: #495057;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.input-group {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
}

.input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-right: none;
    color: var(--primary);
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
}

.form-control, .form-select {
    border-left: none;
    border: 1px solid #ced4da;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    height: auto;
    transition: all 0.2s ease;
    display: block;
    width: 100%;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: none;
    color: #212529;
    background-color: #fff;
    outline: 0;
}

.input-group:focus-within {
    box-shadow: 0 0 0 0.25rem var(--primary-light);
}

.input-group:focus-within .input-group-text,
.input-group:focus-within .form-control {
    border-color: var(--primary);
}

/* Asegurarse de que los campos tengan el mismo alto */
.input-group,
.input-group-text,
.form-control {
    min-height: 45px;
}

.input-group .bi {
    font-size: 1.1rem;
}

.password-requirements {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.password-requirements li {
    margin-bottom: 0.25rem;
    padding-left: 1.2rem;
    position: relative;
}

.password-requirements li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(111, 66, 193, 0.1);
}

.auth-buttons {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem !important;
    margin-bottom: 1rem;
}

.auth-buttons .btn {
    padding: 0.8rem 1rem;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-buttons .btn i {
    margin-right: 0.5rem;
}

.auth-buttons .btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.auth-buttons .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.auth-buttons .btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    background-color: transparent;
}

.auth-buttons .btn-outline-primary:hover {
    color: white;
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.auth-buttons .btn:focus {
    box-shadow: 0 0 0 0.25rem var(--primary-light);
}

.auth-link {
    color: var(--primary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.text-danger {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.gap-3 {
    gap: 1rem !important;
}

/* Estilos para alertas */
.alert {
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.alert-primary {
    background-color: rgba(111, 66, 193, 0.1);
    border-left: 4px solid var(--primary);
    color: var(--primary-dark);
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    border-left: 4px solid #198754;
    color: #0f5132;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 4px solid #dc3545;
    color: #842029;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    color: #664d03;
}

.alert-info {
    background-color: rgba(13, 202, 240, 0.1);
    border-left: 4px solid #0dcaf0;
    color: #055160;
}

@media (max-width: 768px) {
    .auth-card {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .auth-logo-badge {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .auth-site-title {
        font-size: 1.2rem;
    }
    
    .auth-site-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .auth-buttons .btn {
        padding: 0.6rem;
        min-width: 0;
    }
    
    .auth-buttons .btn span {
        display: none;
    }
    
    .auth-buttons .btn i {
        margin-right: 0;
        font-size: 1.2rem;
    }
}

/* Ajustes para los botones de la página de login/registro */
.login-form .auth-buttons,
.registro-form .auth-buttons {
    flex-wrap: wrap;
}

.login-form .auth-buttons .btn,
.registro-form .auth-buttons .btn {
    min-width: 140px;
    margin-bottom: 0.5rem;
}

@media (max-width: 576px) {
    .login-form .auth-buttons,
    .registro-form .auth-buttons {
        justify-content: center;
    }
    
    .login-form .auth-buttons .btn,
    .registro-form .auth-buttons .btn {
        min-width: 0;
        width: 48%;
        padding: 0.8rem;
    }
}

/* Estilos para los botones del header de autenticación */
.auth-header .auth-buttons .btn {
    transition: all 0.3s;
    border: none;
}

.auth-header .auth-buttons .btn-outline-primary {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.auth-header .auth-buttons .btn-outline-primary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
}

.auth-header .auth-buttons .btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.auth-header .auth-buttons .btn-warning:hover {
    background-color: #ffca2c;
    color: #212529;
    transform: translateY(-2px);
} 