html,
body {
    box-sizing: border-box;
}

body {
    background: #f0f2f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
}

.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    /* Make auth-wrapper grow to fill available space */
}

.auth-card {
    display: flex;
    justify-content: center;
    flex-direction: row;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
}

.auth-decoration {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #fff;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 50%;
}

.auth-decoration h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.auth-decoration p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.auth-form {
    padding: 4rem;
    width: 50%;
}

.auth-form h5 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.form-control {
    border-radius: 5px;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(37, 117, 252, 0.25);
    border-color: #2575fc;
}

.btn {
    border-radius: 5px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    /* Make button width same as input */
    margin-top: 1rem;
    /* Add some space above the button */
}

.btn-primary {
    background: linear-gradient(-35deg, #6a11cb 0%, #2575fc 100%);
}

.btn-primary:hover {
    background: linear-gradient(-35deg, #6a11cb 0%, #2575fc 100%);
}

.divider-text {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
    color: #aaa;
}

.divider-text:before,
.divider-text:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #ddd;
}

.divider-text:before {
    left: 0;
}

.divider-text:after {
    right: 0;
}

.legal-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 1.5rem;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    font-size: 1.5rem;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    /* Ensures the image covers the area without distortion */
}

.social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* .google-icon {
    background-color: #db4437;
}

.facebook-icon {
    background-color: #3b5998;
} */

@media (max-width: 768px) {
    .auth-card {
        flex-direction: column;
        max-height: none;
        /* Remove max-height for smaller screens to allow content to dictate height */
        overflow-y: visible;
        /* Remove overflow-y for smaller screens */
    }

    .auth-decoration,
    .auth-form {
        width: 100%;
        padding: 1.5rem;
        /* Reduced padding for smaller screens */
    }

    .auth-decoration h2 {
        font-size: 2rem;
    }

    .auth-decoration p {
        font-size: 1rem;
    }

    .auth-form h5 {
        font-size: 1.5rem;
    }

    .legal-text {
        font-size: 0.7rem;
    }

    .social-icon {
        width: 35px;
        height: 35px;
    }
}