:root {
    --primary-color: #f01543;
    --primary-hover: #d01339;
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --text-color: #333;
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

.auth-container {
    min-height: 100vh;
}

.auth-image {
    background-color: var(--light-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    border-right: 1px solid var(--border-color);
    box-shadow: 5px 0 15px -5px rgba(0, 0, 0, 0.1);
}

.auth-form {
    background-color: white;
    padding: 2rem;
}

.form-container {
    width: 100%;
}

.logo-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.auth-small-logo {
    width: 80px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo-container a:hover .auth-small-logo {
    transform: scale(1.1);
}

.auth-title {
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #333;
    font-size: 1.75rem;
}

.auth-subtitle {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.form-control {
    padding: 0.7rem 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(240, 21, 67, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

.highlight-on-focus:focus-within {
    transform: translateY(-3px);
    transition: transform 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-primary:after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover:after {
    left: 100%;
}

.form-label {
    font-weight: 500;
}

.auth-image-content {
    z-index: 5;
}

.auth-logo {
    width: 180px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.auth-image-content:hover .auth-logo {
    transform: scale(1.05);
}

.mobile-auth-logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
}

.auth-image-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.auth-image-text {
    color: #6c757d;
    line-height: 1.6;
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.floating-icon {
    position: absolute;
    opacity: 0.2;
    animation: float 15s infinite linear;
    font-size: 3rem;
    color: black;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
    100% {
        transform: translateY(0) rotate(360deg);
    }
}

.password-strength {
    height: 5px;
    margin-top: 5px;
    border-radius: 5px;
    transition: all 0.3s;
}

.form-control-with-icon {
    padding-left: 40px;
}

.input-icon-wrapper {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 10;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 10;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(240, 21, 67, 0.15);
    border-color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .auth-form {
        padding: 2rem 1.5rem;
        /* The form takes up more vertical space on mobile, so allow scrolling */
        align-items: flex-start !important;
        overflow-y: auto;
    }
}

@media (max-width: 575.98px) {
    .auth-form {
        padding: 1.5rem 1rem;
    }
    
    .mobile-auth-logo {
        height: 50px;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}