body {
    background-color: #f7fdf9;
    font-family: "Segoe UI", Arial, sans-serif;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper {
    display: flex;
    width: 100%;
    max-width: 1000px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    background: #fff;
}

/* Left side */
.login-image {
    flex: 1;
    background: url('../images/login.png') no-repeat center center;
    background-size: cover;
    min-height: 500px;
}

/* Right side */
.login-form {
    flex: 1;
    padding: 2.5rem 2rem;
}

.logo {
    max-height: 70px;
    margin-bottom: 15px;
}

h2 {
    color: #0078d7;
    font-weight: 700;
}

p {
    margin-bottom: 1.5rem;
}

.form-control {
    border: 1px solid #8bc34a;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
}

.form-control:focus {
    border-color: #8bc34a;
    box-shadow: 0 0 0 0.15rem rgba(139, 195, 74, 0.25);
}

.btn-login {
    background-color: #0078d7;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    padding: 10px;
}

.btn-login:hover {
    background-color: #005bb5;
}

.extra-links {
    font-size: 0.9rem;
}

.extra-links a {
    color: #0078d7;
    text-decoration: none;
}

.extra-links a:hover {
    text-decoration: underline;
}

/* --- Modern Auth Flow Styles --- */
.auth-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(139, 195, 74, 0.1);
}

.auth-card-title {
    color: #2d3748;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-card-subtitle {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    text-align: center;
}

.modern-form-group {
    margin-bottom: 1.5rem;
}

.modern-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
}

.required-star {
    color: #e53e3e;
}

.modern-form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #edf2f7;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.modern-form-input:focus {
    outline: none;
    border-color: #8bc34a;
    box-shadow: 0 0 0 4px rgba(139, 195, 74, 0.15);
}

.modern-btn-primary {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, #0078d7 0%, #005bb5 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.modern-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 120, 215, 0.3);
}

.modern-btn-primary:active {
    transform: translateY(0);
}

.alert-modern {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #f0fff4;
    color: #276749;
    border-color: #c6f6d5;
}

.alert-danger {
    background-color: #fff5f5;
    color: #9b2c2c;
    border-color: #feb2b2;
}

.password-requirements {
    margin-top: 1rem;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    display: none;
}

.requirement-item {
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.requirement-item.valid {
    color: #38a169;
}

.requirement-item.invalid {
    color: #e53e3e;
}

.back-link-box {
    margin-top: 1.5rem;
    text-align: center;
}

.auth-link {
    color: #0078d7;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.auth-link:hover {
    text-decoration: underline;
}