:root {
    --color: #0112ff;
    --color1: #00098b;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 20px;
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-focus: rgba(255, 255, 255, 0.15);

    /* New contrast colors */
    --primary-accent: #10b981;
    --primary-accent-hover: #059669;
    --secondary-accent: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
}

[data-bussines="distribucion"] .page-content {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(35deg, rgb(17, 22, 79), #3062e2);
}

[data-bussines="farmacia"] .page-content {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(35deg, rgb(17, 22, 94), rgb(3, 46, 145));
}

[data-bussines="multiempresa"] .page-content {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(35deg, rgb(28, 66, 116), rgb(7, 64, 197));
}

[data-bussines="facturacion"] .page-content {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(30deg, rgb(39, 73, 73), rgb(6, 95, 117));
}

[data-bussines="servicios"] .page-content {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(35deg, rgb(15, 76, 71), #2a6b65);
}

[data-bussines="laboratory"] .page-content {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(35deg, #1f5470, #246f9f);
}


[data-bussines="restaurant"] .page-content {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(35deg, #195b00, #0e2b65);
}

[data-bussines="hotel"] .page-content {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(35deg, rgb(17, 22, 79), #055277);
}


.auth-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-top-right-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    padding: 40px 10%;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

@media (max-width: 990px) {
    .auth-card {
        border-radius: 20px;
    }
}

.logo-area {
    padding: 20px 30%;
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 50%;
    margin-bottom: 4px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.logo-area::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: linear-gradient(45deg, rgba(16, 185, 129, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 50%;
    z-index: 1;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.auth-title {
    text-align: center;
    color: white;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    position: relative;
}

.auth-title h3 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-title h4 {
    font-size: 1.4rem;
    font-weight: 400;
    opacity: 0.9;
}

.bg {
    background-position: center center;
    background-size: cover;
    width: 45%;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    box-shadow: 0 3px 12px rgb(0 0 0 / 0.2);
}

.service-btn {
    background-color: rgb(0, 0, 0, 0.2);
    width: 100%;
    color: white;
    height: 45px;
    box-shadow: none !important;
}

.service-btn:hover {
    color: var(--color);
    background-color: rgb(0, 0, 0, 0.3);
}

.service-icon {
    margin-right: 10px;
}

.separator {
    width: 60%;
    color: white;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    height: 1px;
    border: none;
    margin: 20px auto;
}

/* Alert styling */
.alert {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 20px;
    transition: var(--transition);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--danger-color);
}

.alert-info {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--primary-accent);
}

.alert p {
    margin-bottom: 0;
    font-weight: 300;
}

.auth-input {
    background: var(--input-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border-radius: 12px;
    font-size: 16px;
    padding-left: 15px;
}

.auth-input:focus {
    background: var(--input-focus);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    outline: none;
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

.input-info-text {
    color: rgb(255, 255, 255, 0.8);
}

.auth-btn {
    background: linear-gradient(135deg, var(--primary-accent), var(--primary-accent-hover));
    height: 50px;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.auth-btn:hover {
    background: linear-gradient(135deg, var(--primary-accent-hover), #047857);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.4);
    color: white;
}

.auth-btn:hover::before {
    left: 100%;
}

.auth-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.text {
    text-align: center;
    color: white;
}

.text-link {
    color: var(--primary-accent);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    font-weight: 500;
}

.text-link:hover {
    color: var(--primary-accent-hover);
    text-decoration: none;
}

.text-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-accent);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.text-link:hover::after {
    width: 100%;
}

/* Input group styling */
.input-group-text {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 0 15px;
    transition: var(--transition);
    border-radius: 12px 0 0 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.input-group-text i {
    font-size: 18px;
    transition: var(--transition);
}

.input-group:hover .input-group-text {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.input-group:hover .input-group-text i {
    transform: scale(1.1);
}

/* Focused state for input groups */
.input-group.focused .input-group-text {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.input-group.focused .input-group-text i {
    transform: scale(1.1);
    color: var(--primary-accent);
}

.btn-theme {
    background-color: white !important;
    color: black !important;
    box-shadow: none !important;
    position: absolute;
    top: 10px;
    left: 10px;
}

.t-redes {
    font-size: 30px;
    color: white
}

/* Company name styling */
.company-name {
    font-weight: 400;
    color: white;
    font-size: 1.5rem;
}

/* Error styling */
.errors {
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state */
.auth-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.auth-btn.loading .btn-text::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 430px) {
    .auth-card {
        border-radius: 16px;
        padding: 30px 20px;
        margin: 20px;
    }

    .logo-area {
        padding: 10px 20%;
        margin-top: 20px;
    }

    .logo {
        width: 100px;
        height: 100px;
    }

    .auth-title h3 {
        font-size: 1.8rem;
    }

    .auth-title h4 {
        font-size: 1.2rem;
    }

    .auth-input {
        height: 45px;
        font-size: 14px;
    }

    .auth-btn {
        height: 45px;
        font-size: 14px;
    }

    .input-group-text {
        padding: 0 12px;
    }

    .input-group-text i {
        font-size: 16px;
    }
}

@media (min-width: 575px) {
    .logo {
        width: 130px;
        height: 130px;
        object-fit: contain;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .auth-card {
        border-radius: 10px;
    }

    .logo-area {
        padding: 1px 27%;
        margin-top: 15px;
    }

    /* .btn-theme {
background-color: aquamarine;
} */
    .caja-login {
        top: 10px;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .caja-email {
        margin-top: 1rem !important;
    }

    .separador-2 {
        display: none;
    }

    .caja-redes {
        padding-top: 0rem !important;
    }
}

@media (min-width: 720px) {
    .h1 {
        margin-top: 25vh;
    }

    .h1-title {
        margin-top: 10vh;
        font-size: 30px;
    }

    .h1-sge_delivery {
        margin-top: 0;
        width: 25%;
        height: 25%;
    }

    .close {
        margin-left: 10px;
    }

    .h1-bottom {
        margin-bottom: 5vh !important;
        font-size: 30px;
    }
}

@media (min-width: 1000px) {
    .auth-card {
        border-top-right-radius: 10px;
        border-bottom-right-radius: 10px;
    }

    .logo {
        width: 130px;
        height: 130px;
        object-fit: contain;
        display: flex;
        align-items: center;
        margin: 0 auto;
        margin-bottom: 3px;
    }

    .logo-area {
        padding: 1px 27%;
        margin-top: 15px;
    }

    .caja-email {
        margin-top: 1rem !important;
    }

    .separador-2 {
        display: none;
    }

    .caja-redes {
        padding-top: 0rem !important;
    }

    .bg {
        width: 45%;
    }
}

@media (min-width: 1335px) {
    .auth-card {
        border-top-right-radius: 10px;
        border-bottom-right-radius: 10px;
    }

    .logo {
        width: 130px;
        height: 130px;
        object-fit: contain;
        display: flex;
        align-items: center;
        margin: 0 auto;
    }

    .logo-area {
        padding: 1px 27%;
        margin-top: 15px;
    }

    .caja-email {
        margin-top: 1rem !important;
    }

    .separador-2 {
        display: none;
    }

    .caja-redes {
        padding-top: 0rem !important;
    }
}
