:root {
    --primary-color: #2196F3;
    --secondary-color: #21CBF3;
    --light-gray: #f4f7f6;
    --text-color: #333;
    --border-color: #e0e0e0;
}

body.auth-page {
    margin: 0;
    background-color: var(--light-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 950px;
    min-height: 620px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    overflow: hidden;
}

.auth-visual {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.auth-visual img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.auth-visual h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

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

.auth-form-container {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.auth-header {
    margin-bottom: auto; /* Pushes header to the top */
}

.auth-logo h1 {
    font-size: 2rem;
    margin: 0;
    color: var(--primary-color);
}

.back-link {
    color: #777;
    text-decoration: none;
    font-size: 0.9rem;
}
.back-link i {
    margin-left: 5px;
}

.auth-form-header {
    text-align: center;
    margin-bottom: 2rem;
}
.auth-form-header h2 {
    font-size: 2rem;
}
.auth-form-header p {
    color: #777;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: right;
}

.input-group {
    position: relative;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 12px 15px;
    padding-right: 45px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

.input-group i {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #aaa;
}

.btn-full {
    width: 100%;
}

.auth-footer {
    text-align: center;
    margin-top: auto; /* Pushes footer to the bottom */
    padding-top: 1rem;
}
.auth-footer p {
    margin: 0;
}
.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

.alert {
    padding: 15px;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    text-align: right;
    font-weight: 600;
}
.alert-error {
    background-color: #f8d7da;
    color: #721c24;
}
.alert-success {
    background-color: #d4edda;
    color: #155724;
}

@media (max-width: 850px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    .auth-visual {
        display: none;
    }
}
/* Password Strength Indicator Styles */
.password-strength {
    margin-top: 8px;
}
.strength-bar {
    width: 100%;
    height: 5px;
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden;
}
.strength-fill {
    height: 100%;
    width: 0;
    transition: width 0.3s, background-color 0.3s;
}
.strength-fill.weak { width: 25%; background-color: #f44336; }
.strength-fill.fair { width: 50%; background-color: #ff9800; }
.strength-fill.good { width: 75%; background-color: #4caf50; }
.strength-fill.strong { width: 100%; background-color: #2e7d32; }

.strength-text {
    font-size: 0.85rem;
    color: #777;
    margin-top: 4px;
    text-align: right;
}