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

body {
    font-family: 'Inter', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: #f8fafc;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

/* ============================================
   LOGIN PAGE
   ============================================ */

.login-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    max-width: 420px;
    width: 100%;
}

/* Logo */
.logo-container {
    text-align: center;
    margin-bottom: 32px;
}

.logo-box {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.logo-letter {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
}

.logo-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.logo-subtitle {
    font-size: 14px;
    color: #64748b;
    font-weight: 400;
}

/* Form */
.login-form {
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1e293b;
    font-weight: 500;
    font-size: 14px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    width: 20px;
    height: 20px;
    color: #64748b;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 14px 12px 44px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    color: #1e293b;
    transition: all 0.2s;
    background: #ffffff;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.08);
}

.input-wrapper input::placeholder {
    color: #94a3b8;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eye-icon {
    width: 20px;
    height: 20px;
    color: #64748b;
}

.toggle-password:hover .eye-icon {
    color: #1e293b;
}

/* Error Alert */
.error-alert {
    display: none;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.error-alert.show {
    display: block;
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

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

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
}

.btn-login.loading .btn-text {
    display: none;
}

.btn-login.loading .btn-loader {
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer */
.login-footer {
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    margin-top: 32px;
}

/* ============================================
   DASHBOARD PAGE
   ============================================ */

.dashboard-container {
    width: 100%;
    max-width: 600px;
}

.dashboard-header {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.user-info {
    color: #1e293b;
    font-weight: 600;
    font-size: 16px;
}

.user-info::before {
    content: "👤 ";
    margin-right: 8px;
}

.btn-logout {
    background: #ef4444;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    font-size: 14px;
}

.btn-logout:hover {
    background: #dc2626;
}

.dashboard-title {
    text-align: center;
    color: #1e293b;
    margin-bottom: 24px;
}

.dashboard-title h1 {
    font-size: 32px;
    font-weight: 700;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-btn {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    cursor: pointer;
}

.menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.menu-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.menu-btn.disabled:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.menu-btn-icon {
    font-size: 40px;
    min-width: 50px;
    text-align: center;
}

.menu-btn-text {
    flex: 1;
}

.menu-btn-text h2 {
    color: #1e293b;
    font-size: 18px;
    margin-bottom: 4px;
    font-weight: 600;
}

.menu-btn-text p {
    color: #64748b;
    font-size: 14px;
    font-weight: 400;
}

/* Color Variants */
.menu-btn-primary .menu-btn-text h2 {
    color: #1976d2;
}

.menu-btn-warning .menu-btn-text h2 {
    color: #f59e0b;
}

.menu-btn-info .menu-btn-text h2 {
    color: #0ea5e9;
}

.menu-btn-success .menu-btn-text h2 {
    color: #22c55e;
}

.menu-btn-secondary .menu-btn-text h2 {
    color: #64748b;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 600px) {
    .login-card {
        padding: 24px;
    }

    .logo-title {
        font-size: 20px;
    }

    .dashboard-title h1 {
        font-size: 24px;
    }

    .menu-btn {
        padding: 16px;
    }

    .menu-btn-icon {
        font-size: 32px;
        min-width: 40px;
    }

    .menu-btn-text h2 {
        font-size: 16px;
    }

    .menu-btn-text p {
        font-size: 13px;
    }
}
