/* Import Nunito font */
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

:root {
    --bs-primary-bg: #0072D8 !important;
}

body {
    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    color: #4B4B4B !important;
    overflow-x: hidden;
    background-color: #ffffff;
}

.bg-primary-subtle {
    background-color: #E5F5FF !important;
}

.btn-primary {
    background-color: var(--bs-primary-bg);
    border-color: var(--bs-primary-bg);
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #0062c0;
    border-color: #0062c0;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 114, 216, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

.alert-danger {
    background-color: #FFE1D9 !important;
    border: 0;
    color: #8B0000;
    border-radius: 8px;
}

.alert-danger .fw-semibold {
    color: #8B0000;
}

.alert-danger i {
    color: #DC3545;
}

.alert-danger p {
    color: #8B0000;
    opacity: 0.9;
}

/* Prevent input number arrows */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

/* Custom styles for better mobile experience */
.form-control {
    font-family: "Nunito", sans-serif;
    font-weight: 400;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px; /* Prevents zoom on iOS */
    height: 48px;
}

.form-control:focus {
    border-color: #0576e7;
    box-shadow: 0 0 0 0.25rem rgba(242, 242, 243, 0.25);
    outline: none;
}

.form-control::placeholder {
    color: #6c757d;
    opacity: 0.7;
    font-weight: 400;
}


/*dito mag babago sa username input*/

.form-control.border-primary {
    border-color: #0072D8 !important; 
    border-width: 1.5px;
}

.form-control.border-opacity-50 {
    border-color: rgb(183, 216, 250) !important;
}

h2.fw-bold {
    color: #333333;
    font-weight: 700 !important;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.fw-semibold {
    font-weight: 600 !important;
}

.small {
    font-size: 0.875rem;
}

/* Style links to match BDO blue */
a.text-decoration-none {
    color: #0072D8;
    transition: color 0.2s ease;
    font-weight: 600;
}

a.text-decoration-none:hover {
    color: #0056a3;
    text-decoration: underline !important;
}

/* Custom hr styling */
hr {
    border-color: rgba(0, 114, 216, 0.2);
    opacity: 1;
    margin: 1.5rem 0;
}

/* Icon styling */
.fi {
    font-size: 1.1rem;
}

#togglePassword {
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 10;
}

#togglePassword:hover {
    color: #0072D8 !important;
}

/* Card/icon container styling */
.rounded-2 {
    border-radius: 0.75rem !important;
}

/* Ensure images fit properly */
.img-fluid {
    max-height: 60px;
    width: auto;
}

/* Icon containers */
.d-flex.flex-column.align-items-center {
    margin-bottom: 1.5rem;
}

.d-flex.flex-column.align-items-center img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    padding: 10px;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .min-vh-100 {
        min-height: 100vh !important;
    }
    
    .mt-5 {
        margin-top: 2rem !important;
    }
    
    .pt-lg-5 {
        padding-top: 2rem !important;
    }
    
    .pe-lg-5 {
        padding-right: 0 !important;
    }
    
    .col-sm-10 {
        width: 100% !important;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h2.fw-bold {
        font-size: 1.5rem;
    }
    
    .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .form-control {
        height: 52px;
        font-size: 16px;
    }
    
    .row.text-center.text-lg-start .col-4 {
        margin-bottom: 1rem;
        
    }
}

/* Desktop optimization */
@media (min-width: 992px) {
    .pe-lg-5 {
        padding-right: 3rem !important;
    }
}

/* Animation for smoother transitions */
#auth, #matrix, #matrix2 {
    transition: opacity 0.3s ease-in-out;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* AOS animation customization */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Background image styling for desktop */
.position-fixed img {
    object-fit: cover;
    object-position: center;
}

/* Container fluid adjustments */
.container-fluid {
    padding-left: 0;
    padding-right: 0;
}

/* Content section styling */
.mt-5.pt-lg-5 {
    background-color: white;
    border-radius: 16px 0 0 16px;
   /* box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05); */
    min-height: 100vh;
}

@media (max-width: 1199.98px) {
    .mt-5.pt-lg-5 {
        border-radius: 16px;
   /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); */ 
        margin: 1rem;
        padding: 2rem !important;
    }
}

/* Form section spacing */
.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

/* Error message styling */
#message1_error, #message2_error, #message3_error {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Input field labels */
.mb-2 > .fw-semibold {
    display: block;
    margin-bottom: 6px;
    color: #333333;
}

/* Text center adjustments for mobile */
@media (max-width: 768px) {
    .text-center.text-lg-start {
        text-align: center !important;
    }
    
    .d-block.text-center.text-lg-start {
        text-align: center !important;
    }
}