/* public/assets/css/auth.css */

:root {
    /* Color Palette */
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-2: #f1f5f9;
    --border: #e2e8f0;
    --text: #0f172a;
    --muted: #475569;

    /* Blue Theme Palette */
    --primary: #1565C0;
    /* Dark strong blue */
    --primary-hover: #0D47A1;
    /* Deep navy blue */
    --accent: #2196F3;
    /* Bright theme blue */
    --accent-hover: #1E88E5;
    /* Hover state */
    --accent-tint: #E3F2FD;
    /* Soft background tint */
    --accent-border: #BBDEFB;
    /* Soft border tint */

    --success: #1E88E5;
    /* Accent blue for success */
    --radius: 24px;
    --radius-sm: 16px;
    --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);

    /* Typography */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* LAYOUT */

.hrm-auth {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    width: 100%;
}

.hrm-showcase {
    background-color: #f1f5f9;
    /* Flat solid modern gray/blue background */
    padding: 60px 80px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hrm-showcase__content {
    width: 100%;
    max-width: 680px;
    margin: auto;
    position: relative;
    z-index: 2;
}

.hrm-showcase__logo {
    display: inline-flex;
    background: #ffffff;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.03);
    margin-bottom: 36px;
    transition: var(--transition);
}

.hrm-showcase__logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.05);
    border-color: var(--accent-border);
}

.hrm-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #ffffff;
    position: relative;
    border-left: 1px solid var(--border);
}

/* CARD */

.hrm-card {
    width: 100%;
    max-width: 500px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow:
        0 20px 40px -15px rgba(15, 23, 42, 0.05),
        0 0 0 1px rgba(15, 23, 42, 0.01);
    position: relative;
}

/* HERO */

.hrm-hero {
    margin-bottom: 24px;
}

.hrm-hero__title {
    font-size: 44px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text);
    margin: 0 0 16px 0;
}

.hrm-hero__desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0;
    max-width: 560px;
}

/* PREVIEW WIDGET */

.hrm-preview {
    margin-top: 36px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 25px 50px -12px rgba(13, 71, 161, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.hrm-preview:hover {
    transform: translateY(-4px) scale(1.005);
    box-shadow:
        0 30px 60px -15px rgba(13, 71, 161, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.hrm-preview__header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    background: rgba(248, 250, 252, 0.5);
}

.hrm-preview__dots {
    display: flex;
    gap: 6px;
}

.hrm-preview__dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
}

.hrm-preview__dots span:nth-child(1) {
    background: #ff5f56;
}

.hrm-preview__dots span:nth-child(2) {
    background: #ffbd2e;
}

.hrm-preview__dots span:nth-child(3) {
    background: #27c93f;
}

.hrm-preview__url {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.hrm-preview__body {
    padding: 24px;
}

/* STATS */

.hrm-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hrm-stat {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    padding: 16px 20px;
    transition: var(--transition);
}

.hrm-stat:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--accent-border);
}

.hrm-stat__label {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hrm-stat__value {
    display: block;
    color: var(--text);
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.hrm-stat__meta {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
}

.hrm-stat__meta.success {
    color: #1E88E5;
}

.hrm-stat__meta.warning {
    color: #eab308;
}

/* CHART */

.hrm-chart {
    height: 100px;
    margin-top: 16px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: flex-end;
    transition: var(--transition);
}

.hrm-chart:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--accent-border);
}

.hrm-chart__bars {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.hrm-chart__bars span {
    flex: 1;
    border-radius: 6px 6px 0 0;
    background: var(--accent);
    /* Flat solid accent color */
    transition: height 0.5s ease-out;
}

/* ACTIVITY */

.hrm-activity {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.hrm-activity__item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    background: rgba(255, 255, 255, 0.4);
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 0.4);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot.success {
    background: #2196F3;
}

.dot.warning {
    background: #90CAF9;
}

.dot.primary {
    background: #0D47A1;
}

/* TOPBAR */

.hrm-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.hrm-back {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--text);
    transition: var(--transition);
}

.hrm-back:hover {
    transform: translateY(-1px);
    background: var(--bg);
    border-color: var(--accent-border);
    color: var(--accent-hover);
}

.hrm-topbar__right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
}

.hrm-topbar__right a {
    text-decoration: none;
    color: var(--accent-hover);
    font-weight: 700;
    transition: var(--transition);
}

.hrm-topbar__right a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* HEADER */

.hrm-header {
    margin-bottom: 28px;
}

.hrm-header__badge {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--accent-tint);
    color: var(--primary);
    border: 1px solid var(--accent-border);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hrm-header__title {
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    margin: 0 0 10px 0;
}

.hrm-header__desc {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* PROGRESS */

.hrm-progress {
    margin-bottom: 28px;
}

.hrm-progress__top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

.hrm-progress__bar {
    height: 6px;
    background: var(--surface-2);
    border-radius: 999px;
    overflow: hidden;
}

.hrm-progress__fill {
    width: 33%;
    height: 100%;
    border-radius: 999px;
    background: var(--accent);
    /* Flat solid progress bar */
    transition: var(--transition);
}

/* FORM & PANEL */

.hrm-panel {
    animation: fadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.99);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.hrm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.hrm-field {
    position: relative;
    margin-bottom: 16px;
}

.hrm-field input,
.hrm-field textarea {
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 24px 16px 8px;
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: var(--transition);
    font-family: var(--font-sans);
}

.hrm-field textarea {
    resize: none;
}

.hrm-field label {
    position: absolute;
    left: 16px;
    top: 15px;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    pointer-events: none;
    transition: var(--transition);
}

.hrm-field input:focus,
.hrm-field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.12);
}

.hrm-field input:focus+label,
.hrm-field input:not(:placeholder-shown)+label,
.hrm-field textarea:focus+label,
.hrm-field textarea:not(:placeholder-shown)+label {
    top: 6px;
    font-size: 10px;
    color: var(--primary);
    font-weight: 600;
}

/* Autofill fixes to keep label position and background nice */
.hrm-field input:-webkit-autofill,
.hrm-field input:-webkit-autofill:hover,
.hrm-field input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset;
    transition: background-color 5000s ease-in-out 0s;
}

.hrm-field input:-webkit-autofill+label {
    top: 6px;
    font-size: 10px;
    color: var(--primary);
    font-weight: 600;
}

/* BUTTONS */

.hrm-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.hrm-btn {
    height: 46px;
    border: none;
    outline: none;
    border-radius: 12px;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    user-select: none;
}

.hrm-btn:active {
    transform: scale(0.98);
}

.hrm-btn--primary {
    flex: 1;
    color: #ffffff;
    background: var(--accent);
    /* Flat solid brand color */
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

.hrm-btn--primary:hover {
    transform: translateY(-1px);
    background: var(--accent-hover);
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.3);
}

.hrm-btn--ghost {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
}

.hrm-btn--ghost:hover {
    background: var(--bg);
    border-color: #94a3b8;
}

.hrm-btn--success {
    flex: 1;
    color: #ffffff;
    background: var(--accent);
    /* Flat solid success brand color */
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

.hrm-btn--success:hover {
    transform: translateY(-1px);
    background: var(--accent-hover);
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.3);
}

/* CUSTOM STYLED CHECKBOX */

.hrm-checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    cursor: pointer;
    user-select: none;
}

.hrm-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
    margin-top: 2px;
}

.hrm-checkbox input[type="checkbox"]:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.hrm-checkbox input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.15);
}

.hrm-checkbox input[type="checkbox"]::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: absolute;
    top: 1px;
    left: 5px;
}

.hrm-checkbox input[type="checkbox"]:checked::after {
    transform: rotate(45deg) scale(1);
}

/* OPTIONS ROW */

.hrm-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    margin-bottom: 20px;
}

.hrm-forgot-password {
    font-size: 13px;
    color: var(--accent-hover);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.hrm-forgot-password:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* ALERT */

.hrm-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 14px 18px;
    color: #dc2626;
    margin-bottom: 20px;
    font-size: 13px;
}

.hrm-alert strong {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.hrm-alert ul {
    margin: 0;
    padding-left: 18px;
}

.hrm-alert.success-alert {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

/* MOBILE LOGO */

.hrm-mobile-logo {
    display: inline-flex;
    justify-content: center;
    background: #ffffff;
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.03);
    margin: 0 auto 28px auto;
    transition: var(--transition);
    width: fit-content;
}

.hrm-mobile-logo:hover {
    transform: translateY(-1px);
    border-color: var(--accent-border);
}

/* RESPONSIVE DESIGN */

@media (max-width: 1200px) {
    .hrm-showcase {
        display: none !important;
    }

    .hrm-auth {
        grid-template-columns: 1fr;
    }

    .hrm-form-side {
        border-left: none;
        background: var(--bg);
    }
}

@media (max-width: 768px) {
    .hrm-form-side {
        padding: 24px 16px;
    }

    .hrm-card {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .hrm-header__title {
        font-size: 26px;
    }

    .hrm-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}