/* ============================================
   MySkillProfile - Main Stylesheet
   ============================================ */

/* --- CSS Variables (Design Tokens) --- */
:root {
    /* Primary Colors */
    --primary-dark: #1a1a4e;
    --primary-mid: #2d2d8a;
    --primary-light: #4a4aff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1a1a4e 0%, #2d2d8a 50%, #4a4aff 100%);
    --gradient-login-bg: linear-gradient(135deg, #1a1a4e 0%, #2d2d8a 25%, #4a4aff 50%, #2d2d8a 75%, #1a1a4e 100%);
    --gradient-page-bg: linear-gradient(135deg, #F8F9FB 0%, #EEF2FF 50%, #F8F9FB 100%);
    --gradient-purple: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    --gradient-orange: linear-gradient(135deg, #ea580c 0%, #fb923c 100%);
    --gradient-blue-light: linear-gradient(135deg, #1a9fff 0%, #4aa8ff 100%);

    /* Accent Colors */
    --success: #4CAF50;
    --success-hover: #45a049;
    --danger: #e74c3c;
    --danger-hover: #c0392b;
    --blue-accent: #1a73e8;
    --blue-link: #7ecfff;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #F8F9FB;
    --gray-100: #EEF2FF;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Shadows */
    --shadow-sm: 0 2px 12px rgba(26, 26, 78, 0.06);
    --shadow-md: 0 4px 20px rgba(26, 26, 78, 0.08);
    --shadow-lg: 0 8px 30px rgba(26, 26, 78, 0.12);

    /* Typography */
    --font-family: 'Lato', Arial, sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.25rem;
    --radius-full: 9999px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-normal);
    line-height: 1.2;
    color: var(--gray-900);
    background: var(--gradient-page-bg);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input {
    font-family: inherit;
    border: none;
    outline: none;
}

/* --- Utility Classes --- */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.min-h-screen {
    min-height: 100vh;
}

.hidden {
    display: none;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-y-auto {
    overflow-y: auto;
}

.cursor-pointer {
    cursor: pointer;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

.transition-all {
    transition: all 0.2s ease;
}

.transition-colors {
    transition: color 0.2s ease, background-color 0.2s ease;
}

/* --- Layout --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.container-sm {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.container-md {
    max-width: 768px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.container-lg {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* --- Grid --- */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (min-width: 768px) {
    .md-grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .md-grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- Typography --- */
.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.font-normal {
    font-weight: var(--font-weight-normal);
}

.font-medium {
    font-weight: var(--font-weight-medium);
}

.font-semibold {
    font-weight: var(--font-weight-semibold);
}

.font-bold {
    font-weight: var(--font-weight-bold);
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wide {
    letter-spacing: 0.025em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.leading-relaxed {
    line-height: 1.625;
}

.leading-snug {
    line-height: 1.375;
}

/* --- Colors --- */
.text-white {
    color: var(--white);
}

.text-gray-300 {
    color: var(--gray-300);
}

.text-gray-400 {
    color: var(--gray-400);
}

.text-gray-500 {
    color: var(--gray-500);
}

.text-gray-600 {
    color: var(--gray-600);
}

.text-gray-700 {
    color: var(--gray-700);
}

.text-gray-900 {
    color: var(--gray-900);
}

.text-blue {
    color: var(--blue-accent);
}

.text-blue-link {
    color: var(--blue-link);
}

.text-green {
    color: #22c55e;
}

.text-red {
    color: var(--danger);
}

.bg-white {
    background-color: var(--white);
}

.bg-gray-50 {
    background-color: var(--gray-50);
}

.bg-gray-100 {
    background-color: var(--gray-100);
}

.bg-gray-200 {
    background-color: var(--gray-200);
}

/* --- Spacing --- */
.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-5 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-5 {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-auto {
    margin-top: auto;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* --- Border --- */
.border {
    border: 1px solid var(--gray-200);
}

.border-t {
    border-top: 1px solid var(--gray-200);
}

.border-r {
    border-right: 1px solid var(--gray-100);
}

.rounded-sm {
    border-radius: var(--radius-sm);
}

.rounded-md {
    border-radius: var(--radius-md);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-xl {
    border-radius: var(--radius-xl);
}

.rounded-2xl {
    border-radius: var(--radius-2xl);
}

.rounded-full {
    border-radius: var(--radius-full);
}

/* --- Shadows --- */
.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* --- Components --- */

/* Login Page */
.login-page {
    background: var(--gradient-login-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-title {
    color: var(--white);
    font-size: 1.875rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 2.5rem;
    text-align: center;
}

.login-card {
    width: 100%;
    max-width: 28rem;
    background: rgba(30, 30, 80, 0.85);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: 2rem;
}

.login-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-lg);
    background: rgba(45, 45, 100, 0.9);
    border: 1px solid rgba(100, 100, 180, 0.4);
    color: #e0e0e0;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

.login-input:focus {
    border-color: var(--primary-light);
}

.login-input::placeholder {
    color: rgba(224, 224, 224, 0.6);
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.password-toggle:hover {
    color: var(--gray-300);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--gray-300);
    font-size: 0.875rem;
}

.checkbox-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--success);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-bold);
    font-size: 0.875rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-primary:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover {
    background: var(--success-hover);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: var(--danger-hover);
}

.btn-blue {
    background: var(--blue-accent);
    color: var(--white);
}

.btn-blue:hover {
    background: #1557b0;
}

.btn-gray {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-gray:hover {
    background: var(--gray-200);
}

.btn-outline {
    background: var(--white);
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover {
    background: var(--gray-50);
}

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

.btn-sm {
    padding: 0.625rem 1rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Header/Navbar */
.header {
    background: var(--gradient-primary);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-alt {
    background: var(--white);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: var(--font-weight-bold);
    font-size: 0.875rem;
}

.logo-icon-solid {
    width: 2rem;
    height: 2rem;
    background: var(--blue-accent);
    border-radius: var(--radius-lg);
}

.header-title {
    font-size: 1.125rem;
    font-weight: var(--font-weight-bold);
    color: var(--white);
}

.header-subtitle {
    font-size: 0.625rem;
    color: rgba(147, 197, 253, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: var(--font-weight-medium);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-full);
    background: var(--danger);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.logout-btn:hover {
    background: var(--danger-hover);
    box-shadow: var(--shadow-md);
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-lg {
    padding: 2rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
}

/* Stats Cards */
.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon-blue {
    background: #dbeafe;
    color: var(--blue-accent);
}

.stat-icon-purple {
    background: #f3e8ff;
    color: #7c3aed;
}

.stat-icon-green {
    background: #dcfce7;
    color: #22c55e;
}

.stat-icon-orange {
    background: #ffedd5;
    color: #ea580c;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--gray-900);
}

.stat-label {
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    color: var(--gray-700);
}

.stat-sublabel {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.625rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.badge-success {
    background: #dcfce7;
    color: #22c55e;
}

.badge-blue {
    background: #dbeafe;
    color: var(--blue-accent);
}

.badge-progress {
    background: #4a90d9;
    color: var(--white);
}

/* Video Preview */
.video-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-preview-mirrored video {
    transform: scaleX(-1);
}

.video-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: var(--blue-accent);
    color: var(--white);
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    box-shadow: var(--shadow-sm);
}

.rec-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #ef4444;
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-md);
    font-size: 0.625rem;
    font-weight: var(--font-weight-bold);
}

/* Checklist */
.check-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    transition: background-color 0.2s;
}

.check-item:hover {
    background: var(--gray-50);
}

.check-item.clickable {
    cursor: pointer;
}

.check-circle {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-circle-pending {
    border: 2px solid var(--gray-300);
}

.check-circle-success {
    background: #22c55e;
    color: var(--white);
}

.check-circle-error {
    background: #ef4444;
    color: var(--white);
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 0.5rem;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.5s ease-out;
}

.progress-bar-sm {
    height: 0.375rem;
}

/* Status Indicators */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.625rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
}

.status-dot-green {
    background: #22c55e;
}

.status-dot-red {
    background: #ef4444;
}

.status-dot-gray {
    background: var(--gray-300);
}

/* Chat Messages */
.chat-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0;
}

.chat-message {
    display: flex;
    max-width: 80%;
}

.chat-message-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-message-persona {
    align-self: flex-start;
}

.chat-bubble {
    padding: 1rem;
    border-radius: var(--radius-2xl);
    font-size: 0.875rem;
    line-height: 1.6;
}

.chat-bubble-user {
    background: var(--gradient-blue-light);
    color: var(--white);
}

.chat-bubble-persona {
    background: var(--gray-50);
    color: var(--gray-800);
    border: 1px solid var(--gray-100);
}

.chat-indicator {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    margin-top: 0.5rem;
    margin-left: 0.75rem;
    margin-right: 0.75rem;
}

/* Input Fields */
.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

.input-field:focus {
    border-color: #93c5fd;
    outline: none;
}

.input-field::placeholder {
    color: var(--gray-400);
}

/* Footer */
.footer {
    background: var(--gradient-primary);
    padding: 1.5rem 2rem;
    border-top: none;
    margin-top: auto;
}

.footer-alt {
    background: var(--white);
    padding: 0.75rem 2rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--white);
}

/* Assessment Cards */
.assessment-card {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    min-height: 320px;
}

.assessment-card-left {
    width: 33.333%;
    padding: 2rem;
    border-right: 1px solid var(--gray-100);
    background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
}

.assessment-card-right {
    width: 66.666%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Overview Cards */
.overview-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.overview-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #dbeafe;
}

.overview-icon {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Animations */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Loader */
.loader {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Icons (SVG utilities) */
.icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.icon-sm {
    width: 0.875rem;
    height: 0.875rem;
}

.icon-md {
    width: 1.25rem;
    height: 1.25rem;
}

.icon-lg {
    width: 1.5rem;
    height: 1.5rem;
}

.icon-xl {
    width: 2rem;
    height: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 0.75rem 1rem;
    }

    .container,
    .container-lg {
        padding: 0 1rem;
    }

    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }

    .assessment-card {
        flex-direction: column;
    }

    .assessment-card-left,
    .assessment-card-right {
        width: 100%;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .login-main {
        flex-direction: column;
        padding: 2rem 1rem;
    }

    .branding-section,
    .login-section {
        width: 100%;
        padding: 1rem;
    }

    .login-header h2 {
        display: none;
    }
}

.login-footer {
    padding: 1rem 4rem;
    display: flex;
    justify-content: flex-end;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
}

/* Additional Login Styles */
.header-tagline {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-style: normal;
    font-family: "Heebo";
    font-weight: 500;
    letter-spacing: 1.8px;
    color: var(--white);
    white-space: nowrap;
    margin: 0;
}

.logo-img {
    height: 36px;
    width: auto;
    cursor: pointer;
    object-fit: contain;
}

.chat-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-icon-svg {
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.chat-icon-svg:hover {
    transform: scale(1.1);
}

.branding-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.branding-divider {
    width: 40px;
    height: 3px;
    background: #4aa8ff;
    margin-bottom: 2rem;
}

.bg-decoration {
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    opacity: 0.3;
    pointer-events: none;
}

.chevron-decoration {
    width: 100%;
    height: 100%;
}

.login-form-section {
    width: 50%;
    display: flex;
    justify-content: center;
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.password-group {
    position: relative;
}

.terms-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.terms-link {
    color: #7ecfff;
    text-decoration: underline;
    cursor: pointer;
}

.terms-link:hover {
    color: #a8d8ff;
}

.error-message {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #fca5a5;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    text-align: center;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: rgba(255, 255, 255, 1);
}

.link-item {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.link-item:hover {
    color: #7ecfff;
}

.loader {
    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);
    }
}

/* Modal Overlay for HR Contact Messages */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeInModal 0.3s ease;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUpModal 0.3s ease;
}

@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-icon {
    margin-bottom: 1.5rem;
}

.modal-icon svg {
    display: inline-block;
}

.modal-title {
    font-family: 'Lexend', 'Lato', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.modal-message {
    font-family: 'Heebo', 'Lato', sans-serif;
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-btn {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.875rem 2.5rem;
    font-family: 'Lexend', 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
}

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


/* --- New Login Design --- */
.login-header {
    background: linear-gradient(135deg, #1a1a4e 0%, #2d2d8a 50%, #4a4aff 100%);
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.login-header h2 {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0;
}

.login-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 8rem;
    gap: 4rem;
    background: radial-gradient(circle at 70% 50%, #1e3a8a 0%, #0a0a25 100%);
}

.branding-section {
    width: 45%;
    color: var(--white);
}

.branding-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.branding-hr {
    width: 40px;
    height: 3px;
    background: #4aa8ff;
    margin-bottom: 2rem;
}

.branding-text {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.copyright {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4rem;
}

.login-section {
    width: 50%;
    display: flex;
    justify-content: center;
}

.login-card-redesign {
    width: 100%;
    max-width: 400px;
    background: rgba(30, 58, 138, 0.4);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.login-input-redesign {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: #1e3a8a;
    border: none;
    border-radius: 8px;
    color: var(--white);
    font-size: 1rem;
}

.login-input-redesign::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.terms-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    font-size: 0.875rem;
}

.terms-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
}

.login-btn-redesign {
    background: #1d4ed8;
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    margin: 1rem auto 0;
    width: fit-content;
    transition: background 0.2s;
}

.login-btn-redesign:hover {
    background: #1e40af;
}

.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

.login-footer {
    padding: 1rem 4rem;
    display: flex;
    justify-content: flex-end;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
}