* { margin: 0; padding: 0; box-sizing: border-box; }
:root { --primary-color: #1877f2; --primary-dark: #0a66c2; --primary-light: #e7f3ff; --secondary-color: #31a24c; --danger-color: #f02849; --warning-color: #ffc107; --text-primary: #050505; --text-secondary: #65676b; --border-color: #ccc; --bg-light: #f0f2f5; --bg-white: #ffffff; --shadow: 0 2px 8px rgba(0, 0, 0, 0.1); --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15); }
body { height: 100%; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif; background-color: var(--bg-light); }
.Main-container { display: flex; gap: 40px; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.login-container { border: 1px blue solid; width: 45vw; background: var(--bg-white); padding: 30px; border-radius: 12px; box-shadow: var(--shadow-lg); height: 95vh; width: 30vw; }
.Logo-title { margin-bottom: 30px; text-align: center; }
.Logo-title h1 { color: var(--primary-color); font-size: 32px; font-weight: 800; margin-bottom: 8px; letter-spacing: -1px; }
.Logo-title p { color: var(--text-secondary); font-size: 20px; }
.login-type-toggle { display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: 20px; margin-bottom: 20px; }
.toggle-label { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.toggle-switch { position: relative; display: inline-block; width: 60px; height: 25px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: 0.4s; border-radius: 28px; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 4px; bottom: 4px; background-color: white; transition: 0.4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--primary-color); }
input:checked + .slider:before { transform: translateX(22px); }
.login-sec { width: 100%; display: grid; grid-template-columns: auto auto; gap: 40px; }
.form-group label { display: inline-block; font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.form-group input { width: 100%; padding: 11px 12px; border: 1px solid var(--border-color); border-radius: 6px; font-size: 15px; color: var(--text-primary); background-color: var(--bg-white); transition: border-color 0.2s, box-shadow 0.2s; }
.form-group input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px var(--primary-light); }
.form-group input::placeholder { color: var(--text-secondary); }
.form-group input:invalid:not(:placeholder-shown) { border-color: var(--danger-color); }
.form-group.checkbox { display: flex; align-items: center; margin-bottom: 15px; }
.form-group.checkbox input[type="checkbox"] { width: auto; margin: 0; margin-right: 8px; cursor: pointer; }
.form-group.checkbox label { margin: 0; font-weight: 500; cursor: pointer; }
.btn { padding: 10px 16px; border: none; border-radius: 6px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-primary { background-color: var(--primary-color); color: white; }
.btn-primary:hover { background-color: var(--primary-dark); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { background-color: #ccc; cursor: not-allowed; opacity: 0.6; }
.btn-block { width: 100%; padding: 11px 16px; font-size: 16px; font-weight: 700; }
.btn-social { width: 100%; background-color: var(--bg-light); color: var(--text-primary); border: 1px solid var(--border-color); margin-bottom: 10px; }
.btn-social:hover { background-color: #e4e6eb; }
.btn-google { border-color: var(--border-color); }
.btn-facebook { border-color: var(--border-color); }
.divider { text-align: center; margin: 20px 0; color: var(--text-secondary); font-size: 13px; position: relative; }
.divider::before { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background-color: var(--border-color); z-index: 0; }
.divider::after { content: ''; background: var(--bg-white); padding: 0 8px; position: relative; z-index: 1; }
.SideBar { border: 1px rgb(8, 4, 248) solid; width: 45vw; height: 95vh; background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%); padding: 40px; border-radius: 12px; color: white; text-align: center; }
.banner-content h2 { font-size: 32px; margin-bottom: 16px; font-weight: 800; }
.banner-content p { font-size: 20px; margin-bottom: 30px; opacity: 0.95; }
.banner-image { width: 100%; height: auto; border-radius: 8px; margin-bottom: 20px; transition: transform 0.3s ease-in-out; cursor: pointer; }
.banner-image:hover { transform: translateX(-50px) scale(1.5); }
.features { list-style: none; text-align: left; }
.features li { padding: 4px 0; font-size: 16px; }
.features li::before { content: '✓ '; font-weight: bold; margin-right: 8px; }
.form-footer { text-align: center; font-size: 13px; color: var(--text-secondary); }
.form-footer p { margin: 10px 0; }
.link { color: var(--primary-color); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }
.alert-danger { background-color: #ffebee; color: var(--danger-color); padding: 12px; border-radius: 8px; margin-bottom: 20px; border-left: 4px solid var(--danger-color); }
.error-message { background-color: #ffebee; color: var(--danger-color); padding: 12px; border-radius: 8px; margin-bottom: 20px; border-left: 4px solid var(--danger-color); display: block; }
.success-message { background-color: #e8f5e9; color: var(--secondary-color); padding: 12px; border-radius: 8px; margin-bottom: 20px; border-left: 4px solid var(--secondary-color); display: none; }
.error-message.show, .success-message.show { display: block; animation: slideDown 0.3s ease-out; }
.loading { display: inline-block; width: 16px; height: 16px; border: 3px solid rgba(255, 255, 255, 0.3); border-radius: 50%; border-top-color: white; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) { 
  .Main-container { flex-direction: column; gap: 20px; padding: 15px; min-height: auto; }
  .login-container { width: 50%; height: auto; padding: 20px; border: none; }
   .SideBar { width:50%; height: auto; padding: 20px; border: none; }
 .login-sec { grid-template-columns: 1fr 1fr; gap: 20px; max-width: 100%; }
 .Logo-title h1 { font-size: 28px; } 
 .Logo-title p { font-size: 18px; } 
 .form-group label { font-size: 14px; } 
 .form-group input { padding: 12px; font-size: 16px; } 
 .btn-block { padding: 12px 16px; }
 }
@media (max-width: 768px) { 
  .Main-container { flex-direction: column; gap: 20px; padding: 15px; min-height: auto; }
  .login-container { width: 100%; height: auto; padding: 20px; border: none; }
   .SideBar { display: none; }
 .login-sec { grid-template-columns: 1fr; gap: 20px; max-width: 100%; }
 .Logo-title h1 { font-size: 28px; } 
 .Logo-title p { font-size: 18px; } 
 .form-group label { font-size: 14px; } 
 .form-group input { padding: 12px; font-size: 16px; } 
 .btn-block { padding: 12px 16px; }
 }
@media (max-width: 480px) { 
  * { margin: 0; padding: 0; } 
  body { padding: 0; background-color: var(--bg-white); } 
  .Main-container { flex-direction: column; gap: 0; padding: 0; min-height: 100vh; align-items: stretch; justify-content: flex-start; } 
.login-container { width: 100vw; height: auto; min-height: 100vh; padding: 20px; border-radius: 0; border: none; box-shadow: none; display: flex; flex-direction: column; justify-content: center; }
 .SideBar { display: none; } .Logo-title { margin-bottom: 20px; } 
.Logo-title h1 { font-size: 24px; margin-bottom: 5px; }
 .Logo-title p { font-size: 14px; margin-bottom: 15px; }
.login-type-toggle { gap: 8px; margin: 15px 0; } 
 .toggle-label { font-size: 12px; }
 .toggle-switch { width: 50px; height: 24px; }
 .slider:before { height: 18px; width: 18px; left: 3px; bottom: 3px; }
 input:checked + .slider:before { transform: translateX(20px); } 
 .login-sec { display: block; gap: 0; max-width: 100%; width: 100%; padding: 0; }
 .member, .group-head { width: 100%; display: none; margin-bottom: 20px; }
 .member.active, .group-head.active { display: block; }
 .member h2, .group-head h2 { font-size: 20px; margin-bottom: 15px; color: var(--primary-color); }
 .form-group { margin-bottom: 15px; }
 .form-group label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 5px; }
.form-group input { width: 100%; padding: 12px; font-size: 16px; border: 1px solid var(--border-color); border-radius: 6px; }
.form-group input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 2px var(--primary-light); }
.error-text { font-size: 12px;color: var(--danger-color); display: block; margin-top: 4px; }
.btn { padding: 12px 16px; font-size: 15px; border-radius: 6px; }
.btn-block { width: 100%; margin-top: 10px; }
.btn-primary { background-color: var(--primary-color); }
.btn-primary:hover { background-color: var(--primary-dark); }
.form-footer { font-size: 12px; margin-top: 15px; }
.form-footer p { margin: 8px 0; line-height: 1.4; } 
.error-message, .success-message { margin-bottom: 15px; padding: 10px; font-size: 13px; border-radius: 6px; }
 .divider { margin: 15px 0; font-size: 12px; } 
}
@media (max-width: 360px) { 
  .login-container { padding: 15px; } 
  .Logo-title h1 { font-size: 20px; }
   .Logo-title p { font-size: 12px; }
    .form-group input { padding: 10px; font-size: 16px; }
     .btn-block { padding: 10px 12px; font-size: 14px; }
     .form-footer { font-size: 11px; }
}
