/*
---
author: ".Aziz Boutalb"
email: "abdelaziz.boutalb@innoventech.ca"
last_updated: "2026-04-05"
purpose: |
  This stylesheet defines the UI presentation for the InnoExchange authentication
  pages, starting with the login page. It provides a clean, professional, and
  secure-looking sign-in interface consistent with a private portal experience.
  The styles are intentionally scoped around the `ix-auth-*` naming pattern to
  avoid unintended interference with the rest of the existing InnoExchange UI.

  The layout centers the authentication card within the viewport, creates a
  structured input/form hierarchy, supports validation messaging, and provides
  interactive styling for the password visibility toggle and sign-in button.
  The design is intentionally neutral and extensible so it can later be aligned
  more tightly with the broader InnoExchange visual system without changing the
  Razor markup structure.
dependencies: |
  - Depends on `Views/Auth/Login.cshtml` using the `ix-auth-*`, `ix-input`,
    `ix-label`, `ix-help`, `ix-field-validation`, and related class names.
  - Should be loaded by the shared layout or explicitly by the login view.
  - Assumes standard browser rendering with no external CSS framework required.
security_notes: |
  - This file is presentation-only and contains no credential-processing logic.
  - Visual states are designed to improve clarity around validation and user intent.
future_notes: |
  - This stylesheet can later be expanded to support dark mode, multi-factor
    authentication screens, access denied pages, password reset flows, and
    deeper InnoExchange branding treatment.
---
*/

:root {
    --ix-auth-bg: #f4f7f9;
    --ix-auth-surface: #ffffff;
    --ix-auth-surface-border: #d8e1e6;
    --ix-auth-text: #1f2d33;
    --ix-auth-muted: #5f7480;
    --ix-auth-heading: #24343b;
    --ix-auth-accent: #00bcd4;
    --ix-auth-accent-hover: #00a6bc;
    --ix-auth-accent-soft: rgba(0, 188, 212, 0.12);
    --ix-auth-danger: #b42318;
    --ix-auth-danger-soft: #fef3f2;
    --ix-auth-input-border: #c6d4dc;
    --ix-auth-input-focus: #00bcd4;
    --ix-auth-shadow: 0 24px 60px rgba(26, 44, 52, 0.12);
    --ix-auth-radius-xl: 22px;
    --ix-auth-radius-lg: 14px;
    --ix-auth-radius-md: 10px;
}

html,
body {
    min-height: 100%;
}

body {
    background: radial-gradient(circle at top left, rgba(0, 188, 212, 0.08), transparent 30%), linear-gradient(180deg, #f8fbfc 0%, var(--ix-auth-bg) 100%);
}

.ix-auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
}

.ix-auth-card {
    width: 100%;
    max-width: 520px;
    background: var(--ix-auth-surface);
    border: 1px solid var(--ix-auth-surface-border);
    border-radius: var(--ix-auth-radius-xl);
    box-shadow: var(--ix-auth-shadow);
    padding: 34px 32px 30px;
}

.ix-auth-header {
    margin-bottom: 26px;
}

.ix-auth-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--ix-auth-accent-soft);
    color: #0f6f7d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ix-auth-title {
    margin: 0 0 10px;
    color: var(--ix-auth-heading);
    font-size: clamp(28px, 4vw, 34px);
    line-height: 1.1;
    font-weight: 800;
}

.ix-auth-subtitle {
    margin: 0;
    color: var(--ix-auth-muted);
    font-size: 15px;
    line-height: 1.6;
}

.ix-auth-form {
    display: grid;
    gap: 18px;
}

.ix-field {
    display: grid;
    gap: 8px;
}

.ix-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ix-label {
    color: var(--ix-auth-text);
    font-size: 14px;
    font-weight: 700;
}

.ix-input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--ix-auth-input-border);
    border-radius: var(--ix-auth-radius-md);
    background: #fff;
    color: var(--ix-auth-text);
    font-size: 15px;
    line-height: 1.4;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    outline: none;
}

    .ix-input::placeholder {
        color: #8ca0ab;
    }

    .ix-input:hover {
        border-color: #aebfc8;
    }

    .ix-input:focus {
        border-color: var(--ix-auth-input-focus);
        box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.14);
    }

.ix-help {
    color: var(--ix-auth-muted);
    font-size: 12.5px;
    line-height: 1.5;
}

.ix-link-button {
    border: 0;
    background: transparent;
    padding: 0;
    color: #0f6f7d;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.18s ease;
}

    .ix-link-button:hover,
    .ix-link-button:focus-visible {
        color: var(--ix-auth-accent-hover);
    }

    .ix-link-button:focus-visible {
        outline: none;
        text-decoration: underline;
    }

.ix-check-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.ix-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ix-auth-text);
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

    .ix-checkbox input[type="checkbox"] {
        width: 16px;
        height: 16px;
        accent-color: var(--ix-auth-accent);
        cursor: pointer;
    }

.ix-submit-btn {
    min-height: 50px;
    margin-top: 4px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--ix-auth-accent) 0%, #11a8bd 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.14s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    box-shadow: 0 12px 28px rgba(0, 188, 212, 0.22);
}

    .ix-submit-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 16px 34px rgba(0, 188, 212, 0.26);
    }

    .ix-submit-btn:active {
        transform: translateY(0);
    }

    .ix-submit-btn:focus-visible {
        outline: none;
        box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.18), 0 16px 34px rgba(0, 188, 212, 0.26);
    }

.ix-validation-summary {
    display: none;
    padding: 12px 14px;
    border: 1px solid #f5c2c7;
    border-radius: var(--ix-auth-radius-md);
    background: var(--ix-auth-danger-soft);
    color: var(--ix-auth-danger);
    font-size: 13.5px;
    line-height: 1.5;
}

    .ix-validation-summary:not(:empty) {
        display: block;
    }

    .ix-validation-summary ul {
        margin: 0;
        padding-left: 18px;
    }

    .ix-validation-summary li {
        margin: 0;
    }

.ix-field-validation {
    color: var(--ix-auth-danger);
    font-size: 12.5px;
    line-height: 1.4;
}

.input-validation-error.ix-input,
.ix-input.input-validation-error {
    border-color: #d92d20;
    background: #fffafa;
}

    .input-validation-error.ix-input:focus,
    .ix-input.input-validation-error:focus {
        box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.12);
        border-color: #d92d20;
    }

@media (max-width: 640px) {
    .ix-auth-page {
        padding: 20px 14px;
    }

    .ix-auth-card {
        padding: 24px 18px 22px;
        border-radius: 18px;
    }

    .ix-auth-title {
        font-size: 28px;
    }

    .ix-auth-subtitle {
        font-size: 14px;
    }

    .ix-input,
    .ix-submit-btn {
        min-height: 46px;
    }
}
