/* ================================================
   LOGIN PAGE PROFESSIONAL STYLING
   ================================================ */

/* Title Styling */
.container h4 {
    font-size: 1.8rem !important;
    font-weight: 900 !important;
    letter-spacing: 2px !important;
    position: relative !important;
    margin-bottom: 2rem !important;
    text-align: center !important;
}

.container h4 span {
    position: relative !important;
    padding-bottom: 12px !important;
    display: inline-block !important;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.container h4 span::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 4px !important;
    background: linear-gradient(90deg, #007bff, #00bcd4) !important;
    border-radius: 2px !important;
    animation: slideInUnderline 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

@keyframes slideInUnderline {
    from {
        width: 0;
        left: 0;
    }
    to {
        width: 100%;
        left: 0;
    }
}

/* Authentication Card */
.authentication-card {
    background-color: white !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 123, 255, 0.08) !important;
    border-top: 4px solid #007bff !important;
    padding: 2.5rem !important;
    margin: 2rem auto!important;
    max-width: 500px !important;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.authentication-card:hover {
    box-shadow: 0 15px 50px rgba(0, 123, 255, 0.12) !important;
    transform: translateY(-4px) !important;
}

/* Form Inputs */
input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"] {
    font-size: 0.95rem !important;
    padding: 0.85rem 1rem !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    background-color: #f9f9f9 !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    width: 100% !important;
}

input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="text"]::placeholder,
input[type="number"]::placeholder {
    color: #bdbdbd !important;
    opacity: 1 !important;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus,
input[type="number"]:focus {
    background-color: white !important;
    border-color: #007bff !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.12) !important;
    outline: none !important;
}

/* Labels */
label {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #222 !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
    transition: all 0.25s ease !important;
}

label.text-primary {
    color: #007bff !important;
}

label:hover {
    color: #007bff !important;
}

/* Checkbox Styling */
.authentication-card input[type="checkbox"] {
    cursor: pointer !important;
    width: 18px !important;
    height: 18px !important;
    accent-color: #007bff !important;
    transition: all 0.25s ease !important;
}

.authentication-card input[type="checkbox"]:hover {
    transform: scale(1.1) !important;
}

.authentication-card input[type="checkbox"]:checked {
    background-color: #007bff !important;
    border-color: #007bff !important;
}

/* Checkbox Label Container */
label.flex {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 0 !important;
}

label.flex span {
    font-size: 0.9rem !important;
    color: #666 !important;
    margin-left: 0.5rem !important;
    user-select: none !important;
}

/* Buttons */
.bg-gradiente-azul-claro {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    color: white !important;
    border: none !important;
    padding: 0.85rem 2rem !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    position: relative !important;
    overflow: hidden !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.bg-gradiente-azul-claro::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 0 !important;
    height: 0 !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.3) !important;
    transform: translate(-50%, -50%) !important;
    transition: width 0.6s, height 0.6s !important;
    z-index: 1 !important;
}

.bg-gradiente-azul-claro:hover::before {
    width: 300px !important;
    height: 300px !important;
}

.bg-gradiente-azul-claro:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(0, 123, 255, 0.35) !important;
}

.bg-gradiente-azul-claro:active {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.25) !important;
}

/* ================================================
   LOGIN FOOTER PROFESSIONAL STYLING
   ================================================ */

.login-footer-wrapper {
    margin-top: 4rem !important;
    padding: 3rem 1.5rem !important;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%) !important;
}

.login-footer-content {
    max-width: 1000px !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    gap: 2rem !important;
    align-items: center !important;
}

/* Footer Item */
.footer-item {
    padding: 2rem !important;
    background-color: white !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.08) !important;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    position: relative !important;
    overflow: hidden !important;
}

.footer-item::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 4px !important;
    background: linear-gradient(90deg, #007bff, #00bcd4) !important;
}

.footer-item:hover {
    box-shadow: 0 10px 40px rgba(0, 123, 255, 0.15) !important;
    transform: translateY(-6px) !important;
}

.footer-item-content {
    text-align: center !important;
}

.footer-item-title {
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    color: #007bff !important;
    margin-bottom: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.footer-item-description {
    font-size: 0.95rem !important;
    color: #666 !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
}

/* Footer Buttons */
.btn-footer-primary,
.btn-footer-secondary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.6rem !important;
    padding: 0.9rem 2rem !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    position: relative !important;
    overflow: hidden !important;
    text-decoration: none !important;
}

.btn-footer-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3) !important;
}

.btn-footer-primary::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 0 !important;
    height: 0 !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.3) !important;
    transform: translate(-50%, -50%) !important;
    transition: width 0.6s, height 0.6s !important;
    z-index: 1 !important;
}

.btn-footer-primary:hover::before {
    width: 300px !important;
    height: 300px !important;
}

.btn-footer-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(0, 123, 255, 0.35) !important;
}

.btn-footer-secondary {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.1) 0%, rgba(0, 123, 255, 0.05) 100%) !important;
    color: #007bff !important;
    border: 2px solid #007bff !important;
    box-shadow: none !important;
}

.btn-footer-secondary::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 0 !important;
    height: 0 !important;
    border-radius: 50% !important;
    background-color: rgba(0, 123, 255, 0.1) !important;
    transform: translate(-50%, -50%) !important;
    transition: width 0.6s, height 0.6s !important;
    z-index: 1 !important;
}

.btn-footer-secondary:hover::before {
    width: 300px !important;
    height: 300px !important;
}

.btn-footer-secondary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2) !important;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.15) 0%, rgba(0, 123, 255, 0.1) 100%) !important;
}

.btn-footer-primary i,
.btn-footer-secondary i {
    position: relative !important;
    z-index: 2 !important;
    font-size: 0.95rem !important;
}

/* Footer Divider */
.footer-divider {
    width: 2px !important;
    height: 150px !important;
    background: linear-gradient(180deg, rgba(0, 123, 255, 0) 0%, rgba(0, 123, 255, 0.3) 50%, rgba(0, 123, 255, 0) 100%) !important;
    margin: 0 1rem !important;
}

/* Remove old footer styles */
.login-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    margin-top: 2rem !important;
}

.login-actions .bg-gradiente-azul-claro {
    width: 100% !important;
    padding: 1rem 2rem !important;
}

.forgot-password {
    font-size: 0.9rem !important;
    color: #007bff !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    position: relative !important;
    transition: all 0.25s ease !important;
    display: inline-block !important;
}

.forgot-password::after {
    content: '' !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 0 !important;
    width: 0 !important;
    height: 2px !important;
    background-color: #007bff !important;
    transition: width 0.3s ease !important;
}

.forgot-password:hover::after {
    width: 100% !important;
}

/* Flex Container For Remember/Forgot */
.flex.items-center {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    margin-top: 1.5rem !important;
}

.flex.items-center label {
    margin-bottom: 0 !important;
}

/* Form Division */
.block.mt-4 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

/* Registration Section */
.registration-section {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, rgba(0, 188, 212, 0.05) 100%) !important;
    padding: 2rem !important;
    border-radius: 12px !important;
    margin-bottom: 2rem !important;
    text-align: center !important;
}

/* Registration Title */
.col-12.text-center {
    text-align: center !important;
}

.fw-bold {
    font-weight: 700 !important;
}

/* Help Button */
span[style*="width: 25px"][style*="height: 25px"] {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #007bff 0%, #00bcd4 100%) !important;
    color: white !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    margin-left: 1rem !important;
    font-size: 1.1rem !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2) !important;
}

span[style*="width: 25px"][style*="height: 25px"]::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
    transition: left 0.3s ease !important;
    z-index: 1 !important;
}

span[style*="width: 25px"][style*="height: 25px"]:hover::before {
    left: 100% !important;
}

span[style*="width: 25px"][style*="height: 25px"]:hover {
    transform: scale(1.15) rotate(-10deg) !important;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.35) !important;
}

span[style*="width: 25px"][style*="height: 25px"] i {
    position: relative !important;
    z-index: 2 !important;
}

/* Error Messages */
.text-red-600,
.validation-errors {
    background-color: #fee !important;
    border-left: 4px solid #d32f2f !important;
    padding: 1rem !important;
    border-radius: 4px !important;
    margin-bottom: 1.5rem !important;
    color: #d32f2f !important;
}

.validation-errors li {
    color: #d32f2f !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    margin-bottom: 0.5rem !important;
}

.validation-errors li:last-child {
    margin-bottom: 0 !important;
}

/* Success Messages */
.text-green-600,
.success-message {
    background-color: #e8f5e9 !important;
    border-left: 4px solid #388e3c !important;
    padding: 1rem !important;
    border-radius: 4px !important;
    color: #388e3c !important;
    font-weight: 500 !important;
    margin-bottom: 1.5rem !important;
}

/* Zoom Animation */
.zoom-boton {
    animation: zoomIn 0.5s ease-out !important;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .authentication-card {
        padding: 1.5rem !important;
        margin: 1.5rem auto !important;
    }

    .container h4 {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    .login-actions {
        gap: 0.8rem !important;
        margin-top: 1.5rem !important;
    }

    .login-actions .bg-gradiente-azul-claro {
        padding: 0.9rem 1.5rem !important;
        font-size: 0.85rem !important;
    }

    .login-footer-wrapper {
        padding: 2.5rem 1rem !important;
        margin-top: 3rem !important;
    }

    .login-footer-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .footer-divider {
        display: none !important;
    }

    .footer-item {
        padding: 1.5rem !important;
    }

    .footer-item-title {
        font-size: 1.1rem !important;
        margin-bottom: 0.6rem !important;
    }

    .footer-item-description {
        font-size: 0.9rem !important;
        margin-bottom: 1.2rem !important;
    }

    .btn-footer-primary,
    .btn-footer-secondary {
        padding: 0.8rem 1.5rem !important;
        font-size: 0.85rem !important;
    }

    input[type="email"],
    input[type="password"],
    input[type="text"],
    input[type="number"] {
        font-size: 0.9rem !important;
        padding: 0.8rem 0.9rem !important;
    }

    label {
        font-size: 0.9rem !important;
    }

    label.flex span {
        font-size: 0.85rem !important;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .authentication-card {
        padding: 1.25rem !important;
        margin: 1.5rem auto !important;
        border-radius: 8px !important;
    }

    .container h4 {
        font-size: 1.2rem !important;
        margin-bottom: 1.2rem !important;
        letter-spacing: 1px !important;
    }

    .container h4 span {
        padding-bottom: 8px !important;
    }

    .container h4 span::after {
        height: 3px !important;
    }

    .login-actions {
        gap: 0.6rem !important;
        margin-top: 1.2rem !important;
    }

    .login-actions .bg-gradiente-azul-claro {
        padding: 0.8rem 1.2rem !important;
        font-size: 0.8rem !important;
    }

    .forgot-password {
        font-size: 0.85rem !important;
    }

    .login-footer-wrapper {
        padding: 2rem 0.8rem !important;
        margin-top: 2rem !important;
    }

    .login-footer-content {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
    }

    .footer-item {
        padding: 1.2rem !important;
    }

    .footer-item-title {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .footer-item-description {
        font-size: 0.85rem !important;
        margin-bottom: 1rem !important;
    }

    .btn-footer-primary,
    .btn-footer-secondary {
        padding: 0.75rem 1.2rem !important;
        font-size: 0.8rem !important;
        width: 100% !important;
    }

    input[type="email"],
    input[type="password"],
    input[type="text"],
    input[type="number"] {
        font-size: 0.85rem !important;
        padding: 0.75rem 0.8rem !important;
        border-radius: 6px !important;
    }

    label {
        font-size: 0.85rem !important;
        margin-bottom: 0.4rem !important;
    }

    label.flex span {
        font-size: 0.8rem !important;
    }

    .block.mt-4 {
        margin-top: 1.2rem !important;
        margin-bottom: 1.2rem !important;
    }

    .validation-errors {
        padding: 0.8rem !important;
        margin-bottom: 1rem !important;
        font-size: 0.85rem !important;
    }

    .validation-errors li {
        font-size: 0.8rem !important;
        margin-bottom: 0.3rem !important;
    }

    .success-message {
        padding: 0.8rem !important;
        margin-bottom: 1rem !important;
        font-size: 0.85rem !important;
    }
}

/* Extra Small (320px and below) */
@media (max-width: 320px) {
    .container h4 {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
        letter-spacing: 0.5px !important;
    }

    .authentication-card {
        padding: 1rem !important;
        margin: 1rem auto !important;
    }

    .login-actions {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    .login-actions .bg-gradiente-azul-claro {
        padding: 0.6rem 1rem !important;
        font-size: 0.75rem !important;
        width: 100% !important;
    }

    .login-footer-wrapper {
        padding: 1.5rem 0.5rem !important;
        margin-top: 1.5rem !important;
    }

    .login-footer-content {
        gap: 0.8rem !important;
    }

    .footer-item {
        padding: 1rem !important;
        border-radius: 8px !important;
    }

    .footer-item-title {
        font-size: 0.9rem !important;
        margin-bottom: 0.3rem !important;
    }

    .footer-item-description {
        font-size: 0.75rem !important;
        margin-bottom: 0.8rem !important;
        line-height: 1.4 !important;
    }

    .btn-footer-primary,
    .btn-footer-secondary {
        padding: 0.65rem 1rem !important;
        font-size: 0.7rem !important;
        width: 100% !important;
    }

    .btn-footer-primary i,
    .btn-footer-secondary i {
        margin-right: 0.3rem !important;
    }

    input[type="email"],
    input[type="password"],
    input[type="text"],
    input[type="number"] {
        font-size: 0.8rem !important;
        padding: 0.6rem 0.7rem !important;
    }

    label {
        font-size: 0.8rem !important;
        margin-bottom: 0.3rem !important;
    }

    label.flex span {
        font-size: 0.75rem !important;
    }

    .validation-errors {
        padding: 0.6rem !important;
        font-size: 0.75rem !important;
    }

    .validation-errors li {
        font-size: 0.7rem !important;
    }

    .success-message {
        padding: 0.6rem !important;
        font-size: 0.75rem !important;
    }
}
