:root {
    --primary-color: #22A852;
    --secondary-color: #067883;
}

/* Body styling to ensure full page coverage */
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100%;
    height: 100vh;
}

/* Basic color overrides */
.text-primary {
    color: #22A852 !important;
}

.text-primary:hover {
    color: #067883 !important;
}

.btn-primary {
    background: linear-gradient(to right, #22A852, #067883) !important;
}

.form-control:focus,
.auth-input:focus {
    border-color: #22A852 !important;
    box-shadow: 0 0 0 3px rgba(34, 168, 82, 0.15) !important;
}

/* Form styling */
.form-control {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #22A852;
    box-shadow: 0 0 0 3px rgba(34, 168, 82, 0.1);
}

.btn {
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #22A852 0%, #067883 100%);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e9548 0%, #055a64 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 168, 82, 0.3);
}

/* Logo styling */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.logo-image {
    max-width: 220px;
    height: auto;
}

.logo-tagline {
    font-size: 0.8rem;
    color: #067883;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

/* Auth Cover Layout */
.auth-cover-wrapper {
    display: flex;
    flex-direction: row;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.auth-cover-content-inner {
    flex: 1;
    display: flex;
    position: relative;
    overflow: hidden;
    height: 100vh;
    min-height: 100%;
}

.auth-cover-content-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat;
}

.auth-img img {
    height: 100vh;
    object-position: center;
    display: block;
}

.auth-cover-sidebar-inner {
    flex: 0 0 556px;
    width: 556px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background-color: transparent;
    min-height: 100vh;
}

.auth-sidebar-bg-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/login_bg.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    z-index: 0;
}

.auth-cover-card-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Responsive adjustments */
@media (min-width: 1921px) {
    .auth-cover-content-wrapper {
        background-size: cover;
    }
}

@media (max-width: 1400px) {
    .auth-cover-sidebar-inner {
        flex: 0 0 500px;
        width: 500px;
    }
}

@media (max-width: 1200px) {
    .auth-cover-sidebar-inner {
        flex: 0 0 450px;
        width: 450px;
    }
}

@media (max-width: 992px) {
    .auth-cover-wrapper {
        flex-direction: column;
    }

    .auth-cover-content-inner {
        flex: 0 0 auto;
        height: 40vh; /* Use viewport height to ensure it takes a fixed portion */
        min-height: 300px;
    }

    .auth-cover-sidebar-inner {
        flex: 1;
        width: 100%;
        max-width: none;
        min-height: 60vh; /* Use remaining viewport height */
    }
    
    .auth-cover-card-wrapper {
        padding: 2rem 1rem;
    }
    
    .auth-sidebar-bg-container {
        background-size: 100% 100%;
    }
}

@media (max-width: 768px) {
    .auth-cover-content-inner {
        height: 35vh; /* Slightly less height on smaller screens */
        min-height: 250px;
    }
    
    .auth-cover-sidebar-inner {
        min-height: 65vh; /* More space for form content */
    }
}

@media (max-width: 576px) {
    .auth-cover-content-inner {
        height: 30vh; /* Even less height on mobile */
        min-height: 200px;
    }
    
    .auth-cover-sidebar-inner {
        min-height: 70vh; /* Even more space for form content */
    }
    
    .auth-sidebar-bg-container {
        background-size: 100% 100%;
    }

    .auth-cover-card {
        padding: 1.5rem !important;
    }
}