/* Auth Pages (Login / Register) - Standalone pages */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #8B9D83 0%, #6B7D63 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ── Login Container ── */
.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.login-left {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 60px 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-left h1 { font-size: 36px; margin-bottom: 20px; color: #8B9D83; }
.login-left p { font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, 0.8); margin-bottom: 40px; }

.role-selector { display: flex; flex-direction: column; gap: 15px; }

.role-option {
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    text-decoration: none;
    color: white;
}
.role-option:hover { background: rgba(139, 157, 131, 0.2); border-color: #8B9D83; transform: translateX(5px); }
.role-option.active { background: rgba(139, 157, 131, 0.3); border-color: #8B9D83; }
.role-option h3 { font-size: 18px; margin-bottom: 5px; display: flex; align-items: center; gap: 10px; }
.role-option p { font-size: 14px; margin: 0; opacity: 0.8; }

.login-right { padding: 60px 40px; }

.login-header { text-align: center; margin-bottom: 40px; }
.login-header h2 { font-size: 28px; color: #1e293b; margin-bottom: 10px; }
.login-header p { color: #64748b; font-size: 14px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: #1e293b; font-size: 14px; }
.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}
.form-group input:focus,
.form-group select:focus { outline: none; border-color: #8B9D83; box-shadow: 0 0 0 3px rgba(139, 157, 131, 0.1); }

.form-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; font-size: 14px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; color: #64748b; cursor: pointer; }
.forgot-link { color: #8B9D83; text-decoration: none; font-weight: 500; }
.forgot-link:hover { color: #6B7D63; }

.btn-login {
    width: 100%;
    padding: 14px;
    background: #8B9D83;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-login:hover { background: #6B7D63; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(139, 157, 131, 0.3); }

.login-footer { text-align: center; margin-top: 24px; padding-top: 24px; border-top: 1px solid #e2e8f0; }
.login-footer a { color: #8B9D83; text-decoration: none; font-weight: 500; }

/* ── Register Container ── */
.register-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.register-left {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 60px 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.register-left h1 { font-size: 36px; margin-bottom: 20px; color: #8B9D83; }
.register-left p { font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, 0.8); margin-bottom: 30px; }

.benefits { display: flex; flex-direction: column; gap: 20px; }
.benefit-item {
    display: flex;
    align-items: start;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.benefit-icon { font-size: 30px; flex-shrink: 0; }
.benefit-text h4 { font-size: 16px; margin-bottom: 5px; color: #8B9D83; }
.benefit-text p { font-size: 13px; margin: 0; opacity: 0.8; }

.register-right { padding: 60px 40px; }
.register-header { text-align: center; margin-bottom: 30px; }
.register-header h2 { font-size: 28px; color: #1e293b; margin-bottom: 10px; }
.register-header p { color: #64748b; font-size: 14px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.btn-register {
    width: 100%;
    padding: 14px;
    background: #8B9D83;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-register:hover { background: #6B7D63; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(139, 157, 131, 0.3); }

.register-footer { text-align: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid #e2e8f0; }
.register-footer a { color: #8B9D83; text-decoration: none; font-weight: 500; }

/* ── Alerts ── */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.alert-error { background: rgba(239, 68, 68, 0.1); color: #dc2626; border-left: 4px solid #ef4444; }
.alert-success { background: rgba(139, 157, 131, 0.1); color: #6B7D63; border-left: 4px solid #8B9D83; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .login-container,
    .register-container { grid-template-columns: 1fr; }
    .login-left,
    .register-left { padding: 40px 30px; }
    .role-selector { display: none; }
    .form-row { grid-template-columns: 1fr; }
}
