:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --light-bg: #ecf0f1;
    --dark-text: #2c3e50;
}

body {
    font-family: "Quicksand", sans-serif;
}

.auth-container {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 100vh;
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
}

.left-panel {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-icon {
    font-size: 2rem;
}

.brand-subtitle {
    font-size: 1rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.4;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.feature-list .check-icon {
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.right-panel {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.welcome-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    text-align: center;
}

.welcome-subtitle {
    color: #666;
    margin-bottom: 40px;
    font-size: 0.95rem;
    text-align: center;
}

.form-floating {
    margin-bottom: 20px;
}

.form-control {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px 12px;
    font-size: 0.95rem;
    height: auto;
}

.form-control:focus {
    border-color: #2c7873;
    box-shadow: 0 0 0 0.2rem rgba(44, 120, 115, 0.25);
}

.form-floating > label {
    color: #999;
    font-size: 0.9rem;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    z-index: 98;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.form-check-input:checked {
    background-color: #2c7873;
    border-color: #2c7873;
}

.forgot-password {
    color: #4a90e2;
    text-decoration: none;
}

.forgot-password:hover {
    color: #357abd;
    text-decoration: underline;
}

.btn-sign-in {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border: none;
    border-radius: 8px;
    padding: 15px;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    width: 100%;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.btn-sign-in:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
    color: white;
}

.create-account {
    text-align: center;
    color: #666;
}

.create-account a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
}

.create-account a:hover {
    color: #357abd;
    text-decoration: underline;
}

.password-requirements {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #e0e0e0;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}

.requirements-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    margin-bottom: 4px;
    color: #666;
}

.requirements-list li.valid i {
    color: #27ae60 !important;
}

.requirements-list li.valid i:before {
    content: "\f00c";
}

.terms-check {
    margin-bottom: 25px;
}

.terms-check .form-check-label {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.terms-link {
    color: var(--secondary-color);
    text-decoration: none;
}

.terms-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.row .form-floating {
    margin-bottom: 20px;
}

.password-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: 8px;
    background: #e0e0e0;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-weak {
    background: #e74c3c;
    width: 25%;
}

.strength-medium {
    background: #f39c12;
    width: 50%;
}

.strength-good {
    background: #27ae60;
    width: 75%;
}

.strength-strong {
    background: #2ecc71;
    width: 100%;
}

.invalid-feedback {
    display: block;
    font-size: 0.8rem;
    color: #e74c3c;
    margin-top: 4px;
}

.valid-feedback {
    display: block;
    font-size: 0.8rem;
    color: #27ae60;
    margin-top: 4px;
}

/* Loading state for form submission */
.btn-sign-in.loading {
    position: relative;
    color: transparent;
}

.btn-sign-in.loading:after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.form-control.is-invalid, .was-validated .form-control:invalid, .form-control.is-valid, .was-validated .form-control:valid{
    background-position: right calc(.375em + 2rem) center;
}

@media (max-width: 768px) {
    .auth-card {
        margin: 10px;
    }
    
    .brand-title {
        font-size: 2rem;
    }
}