body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
}

/* LOGIN */
/* ============ LOGIN STYLES ============ */
:root {
    --primary-color: #4361ee;
    --primary-dark: #3a56d4;
    --secondary-color: #7209b7;
    --light-bg: #f8f9fa;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --success-color: #4CAF50;
    --error-color: #e74c3c;
    --border-color: #dfe6e9;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
} */

.login-wrapper {
    display: flex;
    max-width: 1000px;
    width: 100%;
    height: 600px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* LEFT PANEL */
.login-left {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.brand-logo i {
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 12px;
}

.brand-logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.welcome-text h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.welcome-text p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.features {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: transform 0.3s, background 0.3s;
}

.feature-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.2);
}

.feature-item i {
    font-size: 1.3rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item span {
    font-size: 1rem;
    font-weight: 500;
}

/* RIGHT PANEL */
.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--light-bg);
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.login-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* FORM STYLES */
.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group label i {
    color: var(--primary-color);
}

.input-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
}

.toggle-password:hover {
    color: var(--primary-color);
}

/* REMEMBER & FORGOT */
.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-light);
    position: relative;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    height: 18px;
    width: 18px;
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    margin-right: 8px;
}

.checkbox-container:hover input~.checkmark {
    border-color: var(--primary-color);
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* LOGIN BUTTON */
.login-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.login-btn:active {
    transform: translateY(0);
}

/* LOGIN FOOTER */
.login-footer {
    margin-top: 30px;
}

.error-message {
    color: var(--error-color);
    text-align: center;
    font-size: 0.9rem;
    min-height: 20px;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--error-color);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: var(--text-light);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    padding: 0 15px;
    font-size: 0.9rem;
}

.version {
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        height: auto;
        max-width: 500px;
    }

    .login-left {
        padding: 30px 25px;
    }

    .login-right {
        padding: 30px 25px;
    }

    .welcome-text h2 {
        font-size: 1.8rem;
    }

    .brand-logo h1 {
        font-size: 1.5rem;
    }
}

/* DASHBOARD */
.sidebar {
    width: 220px;
    height: 100vh;
    background: #0f172a;
    color: white;
    position: fixed;
    padding: 20px;
}

.sidebar h2 {
    text-align: center;
}

.sidebar a {
    display: block;
    color: white;
    text-decoration: none;
    margin-top: 15px;
    padding: 10px;
    background: #1e293b;
    border-radius: 5px;
}

.main {
    margin-left: 240px;
    padding: 20px;
}

table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    margin-top: 20px;
}

table th,
table td {
    padding: 10px;
    border: 1px solid #ddd;
}

.edit {
    background: orange;
    color: white;
    border: none;
    padding: 5px 10px;
}

.delete {
    background: red;
    color: white;
    border: none;
    padding: 5px 10px;
}

/* FORM */
.card {
    background: white;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.card input,
.card textarea {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
}

.hidden {
    display: none;
}

hr {
    margin: 15px 0;
    border: 1px solid #334155;
}

img {
    border-radius: 6px;
}

textarea {
    min-height: 80px;
}