/* ============================================================
   LOGIN THE HOME DEPOT - ESTILOS CORPORATIVOS
   ============================================================ */

/* Colores corporativos de The Home Depot */
:root {
    --homedepot-orange: #FF6B35;
    --homedepot-orange-dark: #E55A24;
    --homedepot-orange-light: #FFB366;
    --homedepot-navy: #003D82;
    --homedepot-navy-light: #004FA3;
    --homedepot-white: #FFFFFF;
    --homedepot-gray: #F5F5F5;
    --homedepot-text: #333333;
}

/* ============================================================
   GENERAL STYLES
   ============================================================ */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.min-vh-100 {
    min-height: 100vh;
}

/* ============================================================
   BACKGROUND & GRADIENTS
   ============================================================ */

.bg-homedepot {
    background: linear-gradient(135deg, #FF6B35 0%, #E55A24 100%);
    position: relative;
    overflow: hidden;
}

.bg-homedepot::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 40s linear infinite;
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-homedepot {
    background-color: var(--homedepot-orange);
    border-color: var(--homedepot-orange);
    color: var(--homedepot-white);
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-homedepot:hover {
    background-color: var(--homedepot-orange-dark);
    border-color: var(--homedepot-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-homedepot:active {
    transform: translateY(0);
}

.btn-homedepot:disabled,
.btn-homedepot.disabled {
    background-color: #cccccc;
    border-color: #cccccc;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Botón Entra ID */
.btn-outline-info,
.btn-outline[data-bs-theme="light"] {
    color: var(--homedepot-navy);
    border-color: var(--homedepot-navy);
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-outline-info:hover,
.btn-outline[data-bs-theme="light"]:hover {
    background-color: var(--homedepot-navy);
    color: var(--homedepot-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 61, 130, 0.2);
}

.btn-outline-info:focus,
.btn-outline[data-bs-theme="light"]:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 61, 130, 0.25);
}

/* ============================================================
   TEXT & LINKS
   ============================================================ */

.text-homedepot {
    color: var(--homedepot-orange) !important;
}

.link-homedepot {
    color: var(--homedepot-orange);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.link-homedepot::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--homedepot-orange);
    transition: width 0.3s ease;
}

.link-homedepot:hover {
    color: var(--homedepot-orange-dark);
}

.link-homedepot:hover::after {
    width: 100%;
}

/* ============================================================
   FORM CONTROLS
   ============================================================ */

.form-control-lg {
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.form-control-lg:focus {
    border-bottom-color: var(--homedepot-orange);
    background-color: var(--homedepot-white);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.1);
}

.form-control-lg::placeholder {
    color: #999999;
    opacity: 0.8;
}

.bg-light {
    background-color: var(--homedepot-gray) !important;
}

/* ============================================================
   TABS / PILLS
   ============================================================ */

.nav-pills .nav-link {
    color: var(--homedepot-text);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    background-color: transparent;
    padding: 0.75rem 1rem;
}

.nav-pills .nav-link:hover {
    background-color: rgba(255, 107, 53, 0.1);
    color: var(--homedepot-orange);
    transform: translateY(-1px);
}

.nav-pills .nav-link.active {
    background-color: var(--homedepot-orange);
    color: var(--homedepot-white);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Tab Content */
.tab-content {
    width: 100% !important;
}

.tab-pane {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

.tab-pane.show {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
}

.tab-pane.fade {
    opacity: 0 !important;
    transition: opacity 0.35s ease-in-out;
}

.tab-pane.fade.show {
    opacity: 1 !important;
}

/* ============================================================
    ALERTS
    ============================================================ */

.alert {
    border-radius: 0.5rem;
    padding: 0.875rem 1.25rem;
    border: none;
    border-left: 4px solid;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-danger {
    background-color: #ffe5e5;
    border-left-color: #dc3545;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.alert-info {
    background-color: #d1ecf1;
    border-left-color: #17a2b8;
    color: #0c5460;
}

.alert .alert-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
    border: 1px solid #e3f2fd;
    border-radius: 0.75rem;
    background-color: #f0f8ff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================================
   FORM LABELS
   ============================================================ */

.form-label {
    font-weight: 600;
    color: var(--homedepot-text);
    margin-bottom: 0.75rem;
}

.form-label i {
    color: var(--homedepot-orange);
    margin-right: 0.5rem;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* Mobile (< 576px) */
@media (max-width: 575.98px) {
    .bg-homedepot {
        display: none;
    }

    .w-lg-50 {
        width: 100% !important;
    }

    .p-lg-20 {
        padding: 1.5rem !important;
    }

    .h-100px {
        height: 60px !important;
    }

    .fs-5 {
        font-size: 0.95rem !important;
    }

    .btn-lg {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .nav-pills .nav-link {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
    }

    .form-control-lg {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    h1 {
        font-size: 1.5rem !important;
    }

    .p-8 {
        padding: 1rem !important;
    }
}

/* Tablet (576px - 991px) */
@media (min-width: 576px) and (max-width: 991.98px) {
    .p-20 {
        padding: 2rem !important;
    }

    .h-100px {
        height: 80px !important;
    }

    .w-lg-50 {
        width: 100% !important;
    }
}

/* Desktop (>= 992px) */
@media (min-width: 992px) {
    .flex-lg-row-fluid {
        flex: 1 1 auto;
    }

    .w-lg-50 {
        width: 50% !important;
    }

    .p-lg-20 {
        padding: 2rem !important;
    }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

/* Fade In */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse effect for icons */
.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Bounce effect */
.bounce-in {
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================================
   UTILITIES
   ============================================================ */

.opacity-75 {
    opacity: 0.75;
}

.opacity-50 {
    opacity: 0.5;
}

.gap-3 {
    gap: 1rem !important;
}

.rounded-2 {
    border-radius: 0.5rem;
}

.rounded-3 {
    border-radius: 0.75rem;
}

/* Estado loading del botón */
.btn.state-loading {
    opacity: 0.8;
    cursor: wait;
    pointer-events: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================================
   TRANSITION EFFECTS
   ============================================================ */

* {
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: none;
}

/* ============================================================
   SCROLLBAR PERSONALIZATION
   ============================================================ */

/*::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--homedepot-orange);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--homedepot-orange-dark);
}*/

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ============================================================
   DARK MODE SUPPORT (Opcional)
   ============================================================ */

@media (prefers-color-scheme: light) {
    :root {
        --bs-body-bg: #1a1a1a;
        --bs-body-color: #ffffff;
    }

    .bg-light {
        background-color: #2d2d2d !important;
    }

    .text-gray-900 {
        color: #f5f5f5 !important;
    }

    .text-gray-600 {
        color: #d0d0d0 !important;
    }

    .form-control-lg {
        background-color: #3d3d3d;
        border-bottom-color: #555;
        color: #f5f5f5;
    }

    .form-control-lg:focus {
        background-color: #4d4d4d;
        border-bottom-color: var(--homedepot-orange);
        box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
    }

    .card {
        background-color: #2d2d2d;
        border-color: #444;
    }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */

@media print {
    .bg-homedepot,
    .d-lg-none {
        display: none !important;
    }

    .form-control-lg {
        border: 1px solid #000;
    }
}
