:root {
    --primary-color: #4f46e5;
    --secondary-color: #818cf8;
    --success-color: #22c55e;
    --error-color: #ef4444;
    --text-color: #1f2937;
    --bg-color: #f3f4f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /*font-family: 'Segoe UI', system-ui, sans-serif;*/
    font-family: 'Inter', sans-serif;
}

body {
    min-height: 100vh;
    /*display: flex;*/
    justify-content: center;
    align-items: center;
    /*background: linear-gradient(135deg, #4f46e5, #818cf8);*/
    /*background: #B0C4DE;*/
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 900px;
    min-height: 600px;
    display: flex;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    background: white;
}

.auth-sidebar {
    width: 40%;
    /*background: linear-gradient(135deg, rgba(79, 70, 229, 0.9), rgba(129, 140, 248, 0.9)),
                url('/api/placeholder/400/600') center/cover;*/
    /*background: #0055a0;*/
    /*padding: 40px;*/
    color: white;
    /*display: flex;*/
    flex-direction: column;
    justify-content: space-between;
    display: none;
}

    .auth-sidebar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .auth-sidebar h2 {
        font-size: 2em;
        margin-bottom: 20px;
    }

.auth-main {
    width: 60%;
    padding: 40px;
    background: white;
    position: relative;
    display: grid;
    place-items: center; /* Centra horizontal y verticalmente */


}

.auth-form {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.form-header {
    text-align: center;
    margin-bottom: 0px;
}

    .form-header h1 {
        font-size: 2em;
        color: #0055a0;
        margin-bottom: 10px;
    }

.social-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.social-button {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #f3f4f6;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .social-button:hover {
        background: #e5e7eb;
        transform: translateY(-2px);
    }

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

    .divider::before,
    .divider::after {
        content: '';
        position: absolute;
        top: 50%;
        width: 45%;
        height: 1px;
        background: #e5e7eb;
    }

    .divider::before {
        left: 0;
    }

    .divider::after {
        right: 0;
    }

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-control {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: white;
}

    .form-control:focus {
        border-color: #0055a0;
        box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
        outline: none;
    }

.form-floating .form-control {
    padding-left: 2.5rem; /* Deja espacio para el ícono */
}

/* Ajustar el comportamiento del placeholder */
.form-floating label {
    left: 2.5rem; /* Alinear el label (placeholder flotante) con el texto del input */
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

/*.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ca3af;
}*/

.password-strength {
    height: 4px;
    background: #e5e7eb;
    margin-top: 8px;
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
}

.strength-text {
    font-size: 0.85em;
    margin-top: 5px;
    color: #6b7280;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #0055a0;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .submit-btn:hover {
        background: #3284CC;
    }

    .submit-btn .loader {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: none;
    }
.submit-btn-cancel {
    width: 100%;
    padding: 14px;
    background: #e1e1e1;
    color: #515151;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .submit-btn-cancel:hover {
        background: #b2b2b2;
        color: #fff;
    }

.error-message,
.success-message {
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    display: none;
    animation: slideIn 0.3s ease;
}

.error-message {
    background: #fee2e2;
    color: var(--error-color);
    border: 1px solid #fecaca;
}

.success-message {
    background: #dcfce7;
    color: var(--success-color);
    border: 1px solid #bbf7d0;
}

.otp-container {
    display: none;
    margin-top: 20px;
}

.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 15px 0;
}

.otp-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 1.2em;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
}

.terms {
    font-size: 0.9em;
    color: #6b7280;
    margin-top: 20px;
    text-align: center;
}

.switch-form {
    text-align: center;
    margin-top: 20px;
    color: #6b7280;
}

    .switch-form a {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 500;
    }

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

@media (min-width: 576px) {
    body {
        display: flow;
    }
    .auth-sidebar {
        display: none;
    }

    .auth-main {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    body {
        display: flow;
    }
    .auth-container {
        flex-direction: column;
    }

    .auth-sidebar {
        width: 100%;
        padding: 20px;
        min-height: 200px;
    }

    .auth-main {
        width: 100%;
    }
}

@media (min-width: 768px) {
    body {
        display: flex;
    }
    .auth-sidebar {
        display: block;
    }

    .auth-main {
        padding: 10px 40px 10px 40px;
    }
}

@media (min-width: 992px) {
    .auth-sidebar {
        display: block;
    }
}

@media (min-width: 1200px) {
    .auth-sidebar {
        display: block;
    }
}

@media (min-width: 1400px) {
    .auth-sidebar {
        display: block;
    }
}
/* Additional Animations */
.slide-up {
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Custom Checkbox Style */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .custom-checkbox.checked {
        background: var(--primary-color);
        border-color: var(--primary-color);
    }

    .custom-checkbox i {
        color: white;
        font-size: 12px;
        display: none;
    }

    .custom-checkbox.checked i {
        display: block;
    }


.footer-text {
    padding-top:1rem;
    color: #9E9D9D;
    text-align: center;
    font-size: 0.9rem;
}


input:-webkit-autofill {
    background-color: white !important;
    box-shadow: 0 0 0px 1000px white inset !important;
    color: black !important;
}

.form-floating > label {
    color: #818181;
}

.d-none {
    display:none;
}