* { 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 */
.login-container {border:1px blue solid;width:45vw; background: var(--bg-white); 
     padding: 30px;  border-radius: 12px; box-shadow: var(--shadow-lg);height:95vh;}
/* Logo title Section */
.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 Box */
.login-sec {  width: 100%;display:grid; grid-template-columns: auto auto; gap: 40px; }
/* Form Groups */
.form-group { display: flex; align-items: center; gap: 12px; margin-bottom: 5px; }
.form-group label { min-width: 120px; font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 0; }
.form-group input, form-group select{ flex: 1; padding: 5px 5px; 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; }
 input:focus {outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px var(--primary-light);}
 input::placeholder {color: var(--text-secondary);}
input:invalid:not(:placeholder-shown) {border-color: var(--danger-color);}
/* Checkbox Styles */
.form-group.checkbox {display: flex; align-items: center;margin-bottom: 15px;}
.form-group.checkbox input[type="checkbox"] {width: auto; margin-left: 30px; margin-right: 8px; cursor: pointer; }
.form-group.checkbox label {margin-right:30px; font-weight: 500; cursor: pointer; }
.error-text{ color: var(--danger-color); font-size: 12px; margin-top: 4px; display: block;  }

/* Buttons */
.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);}

/*---------------------------- Side panel ----------------------------*/
.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 */
.banner-image { width: 100%;    height: auto;    border-radius: 8px;    margin-bottom: 20px;
    transition: transform 0.3s ease;cursor: pointer;}
 .banner-image:hover { transform: scale(2.0);}
 /*Feature style*/
 .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 */
.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 Messages */
.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: none;}
.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 State */
.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); }}

/* Responsive Design */
@media (max-width: 768px) {
     .login-container { grid-template-columns: 1fr; gap: 20px; }
    .SideBar {display: none; }
    .login-sec {max-width: 100%;}
    .Logo-title h1 { font-size: 28px; }
    body {padding: 10px; }
}

@media (max-width: 480px) {
    .login-sec {padding: 20px; }
    .logo-title h1 {font-size: 24px; }
    .logo-title p {font-size: 12px;   }
    .form-group input {padding: 10px;font-size: 16px; }
}
