body:has(.auth-wrapper) {
    height: 100vh;
    overflow: hidden;
    margin: 0;
}

body:has(.auth-wrapper) footer {
    display: none;
}

.auth-wrapper {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 80px);
    flex: 1;
}

.auth-form-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 3rem;
    background: var(--white);
    overflow-y: auto;
    min-height: 100%;
}

.auth-brand-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    text-align: center;
    min-height: 100%;
    color: var(--white);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.auth-brand-side .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.auth-brand-side .logo img {
    width: 70px;
    height: auto;
}

.auth-brand-side .logo span {
    font-size: 1.8rem;
    font-weight: 700;
}

.auth-brand-side .tagline {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.auth-brand-side .features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.auth-brand-side .feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.auth-brand-side .feature-item::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #4ADE80;
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.authentication {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.authentication h1 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.authentication h2 {
    font-size: 0.85rem;
    color: var(--text-color);
    font-weight: 400;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.authentication form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.authentication label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-color);
}

.authentication input[type="text"],
.authentication input[type="email"],
.authentication input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    height: auto;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 0.95rem;
    background: var(--white);
    transition: var(--transition);
}

.authentication input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}

.authentication button[type="submit"] {
    width: 100%;
    padding: 0.875rem 1.5rem;
    height: auto;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.25rem;
}

.authentication button[type="submit"]:hover {
    background: #001d3d;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.authentication form p {
    color: #DC2626;
    font-size: 0.8rem;
    background: #FEE2E2;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    margin: -0.25rem 0;
}

.authentication form > p:has(a) {
    background: none;
    color: var(--text-color);
    padding: 0;
    text-align: right;
    font-size: 0.8rem;
}

.authentication form > p:has(a) a {
    color: var(--secondary-color);
}

.authentication form > p:has(a) a:hover {
    text-decoration: underline;
}

.authentication > p {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-color);
}

.authentication > p:last-child {
    margin-top: 0.25rem;
}

.authentication > p a {
    color: var(--secondary-color);
    font-weight: 600;
}

.authentication > p a:hover {
    text-decoration: underline;
}

.authentication form > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.authentication form > div > p {
    width: 100%;
    margin: 0 0 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-color);
    background: none;
    padding: 0;
}

.authentication input[type="radio"],
.authentication input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--secondary-color);
    cursor: pointer;
}

.authentication input[type="radio"] + label {
    margin-right: 1rem;
    cursor: pointer;
}

.auth-wrapper.register .auth-form-side {
    padding: 1.5rem 3rem;
}

.auth-wrapper.register .authentication h2 {
    margin-bottom: 0.75rem;
}

.auth-wrapper.register .authentication form {
    gap: 0.5rem;
}

.auth-wrapper.register .authentication label {
    font-size: 0.75rem;
}

.auth-wrapper.register .authentication input[type="text"],
.auth-wrapper.register .authentication input[type="email"],
.auth-wrapper.register .authentication input[type="password"] {
    padding: 0.6rem 0.875rem;
    font-size: 0.9rem;
}

.auth-wrapper.register .authentication button[type="submit"] {
    padding: 0.75rem 1.5rem;
    margin-top: 0.5rem;
}

@media (max-width: 1100px) {
    body:has(.auth-wrapper) {
        height: auto;
        overflow: auto;
    }

    .auth-wrapper {
        flex-direction: column !important;
        height: auto;
        min-height: auto;
    }

    .auth-form-side {
        order: 1 !important;
        padding: 3rem 1.5rem;
        min-height: auto;
    }

    .auth-brand-side {
        order: 2 !important;
        padding: 3rem 1.5rem;
        min-height: auto;
    }
}

@media (min-width: 1101px) {
    .auth-wrapper.register .auth-brand-side {
        order: -1;
    }
}
