:root {
    --navy: #182442;
    --navy-light: #1e2f54;
    --navy-800: #0f1a30;
    --green: #5dc19b;
    --green-hover: #4daa87;
    --green-light: #e8f7f0;
    --green-glow: rgba(93, 193, 155, 0.15);
    --font: 'Figtree', sans-serif;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gray-900: #0f172a;
    --radius: 10px;
    --radius-lg: 14px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.04), 0 10px 15px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: var(--font);
    font-size: 15px;
    color: var(--gray-900);
    background: linear-gradient(135deg, #f0f4f8 0%, #e8ecf1 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--green);
    text-decoration: none;
    transition: color 0.15s;
}

a:hover {
    color: var(--green-hover);
}

/* ===== Form Controls ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--gray-700);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font);
    font-size: 15px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--gray-900);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-glow);
}

.form-control::placeholder {
    color: var(--gray-400);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--green) 0%, #4daa87 100%);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(93, 193, 155, 0.3);
}

.btn-primary:hover:not(:disabled) {
    box-shadow: 0 4px 16px rgba(93, 193, 155, 0.4);
    transform: translateY(-1px);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-outline-light {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 7px 18px;
    font-size: 13px;
    border-radius: 8px;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-sm {
    padding: 7px 18px;
    font-size: 13px;
}

/* ===== Login Page ===== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(160deg, var(--navy-800) 0%, var(--navy) 40%, var(--navy-light) 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(93, 193, 155, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.login-page::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(93, 193, 155, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.login-card {
    background: var(--white);
    border-radius: 16px;
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.login-header {
    text-align: center;
    margin-bottom: 36px;
}

.login-logo-img {
    height: 64px;
    width: auto;
    margin-bottom: 16px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--gray-500);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.remember-me {
    margin-bottom: 20px;
}

.remember-me label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-500);
    cursor: pointer;
    user-select: none;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--green);
    cursor: pointer;
}

.otp-instructions {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 20px;
    text-align: center;
}

.otp-input {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 8px;
    padding: 14px;
}

.otp-expiry {
    text-align: center;
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.otp-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: center;
}

.otp-actions {
    text-align: center;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.otp-action-link {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.otp-action-link:hover {
    color: var(--navy);
}

.otp-action-divider {
    color: var(--gray-300);
    font-size: 13px;
}

/* ===== Top Bar ===== */
.topbar {
    background: linear-gradient(90deg, var(--navy-800) 0%, var(--navy) 100%);
    padding: 0 48px;
    height: 60px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 10;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.topbar-brand {
    display: flex;
    align-items: center;
}

.topbar-logo {
    height: 34px;
    width: auto;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-user {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
}

/* ===== Dashboard Content ===== */
.dashboard-content {
    padding: 40px 48px;
    max-width: 1600px;
    margin: 0 auto;
}

.page-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
}

.page-subtitle {
    font-size: 15px;
    color: var(--gray-500);
    margin: 0 0 32px 0;
}

/* ===== Content Cards ===== */
.content-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.content-card-header {
    padding: 20px 28px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content-card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
}

.content-card-body {
    padding: 0;
}

/* ===== Tile Grid ===== */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tile-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
}

.tile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green), #4daa87);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left;
}

.tile-card:hover {
    color: inherit;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    border-color: transparent;
    transform: translateY(-2px);
}

.tile-card:hover::before {
    transform: scaleX(1);
}

.tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--green-light);
    border-radius: 14px;
    margin-bottom: 18px;
}

.tile-icon i {
    font-size: 22px;
    color: var(--green);
}

.tile-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 8px 0;
}

.tile-description {
    font-size: 14px;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.6;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .topbar {
        padding: 0 20px;
    }

    .dashboard-content {
        padding: 24px 20px;
    }

    .tile-grid {
        grid-template-columns: 1fr;
    }

    .login-card {
        padding: 36px 24px;
    }

    .topbar-user {
        display: none;
    }
}
