:root {
    --primary-color: #FF7139;
    --text-color: #333333;
    --background-color: #F5F5F5;
    --border-color: #E6E6E6;
}

/* Base styles */
html {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #fff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Layout container */
.layout-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header styles */
.header {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    z-index: 10;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 50px;
}

.back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #F5F5F5;
    border-radius: 50%;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s;
}

.back-button:hover {
    background-color: #EBEBEB;
}

.back-button img {
    width: 40px;
    height: 40px;
}

.contact-center {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #FFF4F0;
    border-radius: 100px;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.contact-center:hover {
    background-color: #FFE4D9;
    color: #6c757d;
}

.contact-center:hover img {
    opacity: 0.8;
}

.contact-center img {
    width: 20px;
    height: 20px;
    transition: opacity 0.2s ease;
}

/* Login specific styles */
.login-title {
    font-size: 25px;
    font-weight: 300;
    color: #333333;
    margin-bottom: 1px;
    text-align: left;
}

.login-subtitle {
    font-size: 16px;
    color: rgba(0,0,0,.2);
    font-weight: 300;
    margin-bottom: 24px;
    text-align: left;
}

.login-divider {
    border: none;
    border-top: 1.5px solid #f5f1ee;
    margin: 0 -2rem 24px -2rem;
    width: calc(100% + 4rem);
    box-sizing: border-box;
}

/* Social login buttons */
.login-social-btns-center {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-horizontal.w-100 {
    width: 100%;
    display: flex;
    flex-direction: inherit;
    align-items: center;
}

.login-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 90%;
    min-width: 220px;
    max-width: 550px;
    height: 48px;
    background: #fff;
    border: 1.5px solid #e6e6e6;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(44, 44, 44, 0.04);
    font-size: 16px;
    font-weight: 500;
    color: #222;
    margin-bottom: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
    padding: 0 16px;
}

/* Login card styles */
.login-card {
    background: #fff;
    border-radius: 24px;
    padding: 2rem;
    width: 100%;
    max-width: 550px;
/*    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);*/
    margin: 0 auto;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 10px;
}

.login-card:hover {
/*    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);*/
    transition: box-shadow 0.3s ease;
}

/* Form controls */
.form-control {
    background: #FFFFFF;
    border: 1.5px solid #E6E6E6;
    border-radius: 16px;
    height: 56px;
    padding: 0 16px;
    font-size: 16px;
    color: #333333;
    transition: all 0.2s ease;
}

.form-control::placeholder {
    color: rgba(0,0,0,.2) !important;
}

.form-control:focus {
    border-color: #FF7139;
    box-shadow: none;
    outline: none;
    background: #fff;
}

.input-label {
    font-size: 15px;
    color: #666;
    font-weight: 500;
    margin-bottom: 6px;
    text-align: left;
    display: block;
}

.input-group {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 550px;
}

.input-group .form-control {
    background: #F5F5F5;
    border: 1.5px solid #E6E6E6;
    border-radius: 16px !important;
    height: 48px !important;
    font-size: 16px;
    color: #333;
    padding: 0 48px 0 16px;
    box-shadow: none;
    transition: border-color 0.2s;
    width: 100%;
    min-width: 220px;
    max-width: 550px;
    position: relative;
}

.input-group-append {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    height: 24px;
    pointer-events: none;
    z-index: 2;
}

.input-icon {
    color: #999;
    font-size: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    pointer-events: auto;
}

/* Main content and sections */
.main-content {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-image: url('/images/FondoGrisNew.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 1;
    margin: 0;
    padding: 0;
}

.content-split {
    position: relative;
    display: flex;
    width: 100%;
    min-height: calc(100vh - 82px);
    padding: 10px 0 0 0;
    z-index: 2;
    background: transparent;
}

.left-section {
    position: relative;
    flex: 1;
    background-image: url('/images/ImagenGenerica.png');
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    width: 50%;
    min-width: 400px;
    max-width: 800px;
    border-radius: 0 32px 32px 0;
    overflow: hidden;
    z-index: 3;
    margin-left: 0;
}

.right-section {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0 2rem;
    width: 50%;
    z-index: 3;
    background: transparent;
}

/* Additional login components */
.login-separator {
    border: none;
    height: 1px;
    background-color: rgba(0,0,0,.2);
    margin: 24px -2rem;
    width: calc(100% + 4rem);
}

.separator {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin: 1.5rem auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.separator::before,
.separator::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #E6E6E6;
    margin: 0 1rem;
    min-width: 20px;
    max-width: 120px;
}

.separator span {
    white-space: nowrap;
    padding: 0 0.5rem;
    color: rgba(0,0,0,.2);
    font-size: 14px;
}

/* Links */
.forgot-password-container {
    display: flex;
    justify-content: center;
}

.forgot-password-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #FF7139;
    font-weight: 500;
    transition: color 0.2s ease;
    text-decoration: none;
}

.forgot-password-link:hover {
    color: #ff8152;
}

.register-link-container {
    text-align: center;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.register-link {
    color: #FF7139;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.register-link:hover {
    color: #ff8152;
}

.register-text {
    color: rgba(0,0,0,.2);
    font-size: 14px;
    white-space: nowrap;
}

/* Error messages */
.validation-error-message {
    display: flex;
    align-items: center;
    background-color: #FF4C4C;
    color: white;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    position: relative;
    font-size: 0.85rem;
    font-weight: 500;
}

.validation-error-message .error-icon {
    margin-right: 8px;
    display: flex;
    align-items: center;
}

.validation-error-message .close-button {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.text-danger {
    font-size: 0.85rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    .content-split {
        flex-direction: column;
        min-height: 100vh;
        padding-top: 0;
    }

    .left-section {
        display: none;
    }

    .right-section {
        padding: 1rem;
    }

    .contact-center {
        padding: 20px;
        width: 45px;
        height: 45px;
        min-width: 45px;
        min-height: 45px;
        justify-content: center;
        border-radius: 50%;
        margin-left: auto;
    }

    .contact-center span {
        display: none !important;
    }

    .contact-center img {
        width: 20px;
        height: 20px;
        margin: 0;
    }

    .main-content {
        background-attachment: scroll;
    }

    .login-separator {
        margin: 24px -1.5rem;
        width: calc(100% + 3rem);
    }

    .register-link-container {
        flex-wrap: nowrap;
        width: 100%;
        margin-top: 12px;
    }

    .separator {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }

    .separator::before,
    .separator::after {
        margin: 0 0.5rem;
        min-width: 15px;
    }

    .separator span {
        font-size: 13px;
    }

    /* Mobile social buttons */
    .mobile-social-buttons {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 12px !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .mobile-social-btn {
        flex: 1 !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 48px !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 16px !important;
        background: #FFFFFF !important;
        border: 1px solid #E6E6E6 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .mobile-social-btn .login-social-text {
        display: none !important;
    }

    .mobile-social-btn .login-social-icon {
        margin: 0 !important;
        width: 24px !important;
        height: 24px !important;
    }

    .login-social-btns-center {
        padding: 0 16px;
    }

    .login-social-btns-center form {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        margin: 0;
        gap: 8px; /* Agregando espacio entre botones */
    }

    .login-social-btn {
        flex: 0 0 calc(50% - 4px); /* Ajustando el ancho para mantener el espacio */
        width: calc(50% - 4px) !important;
        min-width: unset !important;
        margin: 0 !important;
        padding: 8px !important;
        height: 44px !important;
    }

    .login-social-btn .login-social-text {
        display: none;
    }

    .login-social-btn .login-social-icon {
        margin: 0;
    }

    .login-social-btn svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.5rem;
    }

    /* Small screen adjustments */
    .small-screen-adjustments {
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .small-screen-append {
        right: 12px !important;
    }

    .mobile-layout {
        flex-direction: column !important;
        margin-top: 10px !important;
    }

    .mobile-hidden {
        display: none !important;
    }

    .mobile-full-width {
        width: 100% !important;
        padding: 0 1rem !important;
    }

    .mobile-card {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 1.5rem !important;
        box-shadow: none !important;
    }

    .mobile-button {
        height: 42px !important;
        font-size: 15px !important;
        padding: 0 8px !important;
    }

    .mobile-icon {
        width: 20px !important;
        height: 20px !important;
    }


    /*.primary-btn {
        color: #fff !important;
        background-color: #EF8849 !important;
        border-color: #EF8849 !important;
        border: none !important;
        transition: background-color 0.2s;
    }

        .primary-btn:hover {
            background-color: #ff9c5c !important;
        }

    .login-title {
        font-size: 28px;
        font-weight: 600;
        color: #333333;
        margin-bottom: 8px;
        font-family: 'Inter', sans-serif;
    }

    .login-subtitle {
        font-size: 16px;
        color: #666666;
        font-weight: normal;
        margin-bottom: 24px;
        font-family: 'Inter', sans-serif;
    }

    .login-submit-btn {
        width: 100% !important;
        height: 56px;
        background: #FF7139 !important;
        border: none !important;
        border-radius: 16px !important;
        font-size: 16px;
        font-weight: 500;
        color: #fff !important;
        margin-top: 24px;
        margin-bottom: 24px;
        transition: background-color 0.2s ease;
    }

        .login-submit-btn:hover {
            background: #ff8152 !important;
        }*/
}