﻿/* ==========================================================================
   GideonSoft — Login & MFA experience
   Shared stylesheet for all screens
   ========================================================================== */

:root {
    --surface-primary: #f6f6f6;
    --surface-secondary: #ffffff;
    --surface-tertiary: #D0D4D6;
    --border: #e2e5ef;
    --brand-primary: #36527C;
    --accent-blue: #3698CC;
    --accent-light-blue: #C4E1F0;
    --accent-dark-blue: #00264d;
    --accent-active-blue: #86C1E0;
    --accent-orange: #d36915;
    --neutral-light-gray: #C1C5C7;
    --neutral-dark-gray: #5C6C79;
    --text: #333333;
    --text-muted: #C1C5C7;
    --color-light: #ffffff;
    --color-dark: #333333;
    --color-dark-secondary: #3C444E;
    --color-green: #0C9900;
    --color-active-green: #1E8449;
    --color-light-green: #88EC81;
    --color-active-light-green: #6CC166;
    --color-red: #C70000;
    --color-active-red: #FF5656;
    --color-yellow: #F4D452;
    --color-active-yellow: #FFE785;
    --color-orange: #F2723A;
    --color-active-orange: #F48352;
    --color-purple: #9836CC;
    --color-active-purple: #9836CC;
}

/* ---- Reset & base ------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Roboto", "Segoe UI", Helvetica, Arial, sans-serif;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
}

/* ---- Page layout: two columns ------------------------------------------ */
.page {
    display: grid;
    grid-template-columns: 40fr 60fr;
    height: 100vh;
}

.org-page {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
    background-color: var(--brand-primary);
}

/* ==========================================================================
   LEFT PANEL (marketing / branding)
   ========================================================================== */
.brand-panel {
    position: relative;
    background-color: var(--brand-primary);
    color: var(--color-light);
    padding: 56px 64px;
    display: flex;
    flex-direction: column;
   
}

.brand-logo {
    height: auto;
    width: 150px;
}

/* Hero headline */
.brand-hero {
    margin-top: auto;
    margin-bottom: auto;
    max-width: 520px;
    position: relative;
    overflow: hidden;
}

.brand-hero__title {
    font-size: 32px;
    font-weight: 400;
    color: var(--color-light);
    line-height: 1.08;
}

.brand-hero__quote-icon {
    width: 80px;
    opacity: .15;
    margin-bottom: -15px;
}

.brand-hero__image {
    display: none;
    width: 100%;
    max-width: 250px;
    margin-top: 50px;
    height: auto;
    margin-bottom: 28px;
    border-radius: 16px;
    object-fit: cover;
}

    .brand-hero__image.is-visible {
        display: block;
    }

.brand-hero__title,
.brand-hero__body {
    will-change: transform, opacity;
    font-family: "Playfair Display", serif;
    opacity: .85;
}

#hero-body {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

    #hero-body:not(:empty)::before {
        content: "";
        display: inline-block;
        width: 38px;
        height: 1px;
        background: rgba(255, 255, 255, 0.55);
        flex: 0 0 auto;
    }

#hero-body {
    font-family: "Playfair Display", serif;
    font-size: 22px;
}

.brand-hero__dots {
    display: flex;
    gap: 8px;
    margin-top: 28px;
}

.brand-hero__dot {
    width: 26px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,.35);
    border: none;
    cursor: pointer;
    transition: background .2s ease, width .2s ease;
}

.brand-hero__dot--active {
    width: 42px;
    background: var(--color-light);
}

.brand-hero__body {
    margin-top: 0px;
    padding-right: 10px;
    margin-bottom: 25px;
    font-size: 20px;
    line-height: 1.45;
    color: var(--color-light);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
}

/* QR / mobile app block */
.brand-app {
    margin-top: auto;
}

.brand-app__qr {
    width: 200px;
    height: 200px;
    display: block;
    background: var(--surface-secondary);
    padding: 10px;
}

.brand-app__qr_container {
    display: flex;
    justify-items: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.brand-store-icons {
    display: flex;
    justify-items: center;
    align-items: center;
    gap: 5px;
}

.brand-apple-icon {
    width: 30px;
    height: auto;
}

/* sadly the play the store icon is a bit bigger than the apple */
.brand-play-icon {
    width: 25px;
    height: auto;
}

.brand-app__label {
    font-size: 18px;
    font-weight: 500;
    margin-top: 5px;
}

/* Footer */
.brand-footer {
    margin-top: 56px;
}

.brand-footer__product {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 21px;
    font-weight: 500;
}

.brand-footer__g {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: block;
}

.brand-footer__meta {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.brand-footer__meta a {
    color: var(--text-muted);
}

.help img {
    width: 20px;
    height: auto;
}

/* ==========================================================================
   RIGHT PANEL (form)
   ========================================================================== */
.form-panel {
    background-color: var(--surface-secondary);
    display: flex;
    align-items: center;
    flex-direction: column;
   
    padding: 56px;
    overflow-y:auto;
}

.form {
    width: 100%;
    max-width: 440px;
}
.form-xl {
    width: 100%;
    max-width: 650px;
}

/* Logos & back link */
.workspace-logo {
    max-height: 100px;
    width: auto;
    display: block;
    margin-bottom: 36px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--neutral-dark-gray);
    margin-bottom: 26px;
}

.back-link:hover {
    text-decoration: none;
    opacity: .8;
}

/* Headings */
.form__title, .form__title-message {
    font-size: 40px;
    max-width: 400px;
    font-weight: 700;
    margin-top: 0;
    color: var(--brand-primary);
    line-height: 1.1;
}
.form__title-message {
    font-size: 20px;
}
.form__subtitle {
    margin-top: 14px;
    font-size: 17px;
    color: var(--neutral-dark-gray);
    line-height: 1.4;
}

.form ul {
    margin-left:40px;
    color: var(--neutral-dark-gray);
}

/* Form fields */
.field {
    margin-top: 26px;
}

.field__label-row {
    display: flex;
    align-items: center;
    max-width: 440px;
    justify-content: space-between;
}

.field__label {
    display: flex;
    align-items: center;
    font-weight:400;
    gap: 6px;
    font-size: 16px;
    color: var(--neutral-dark-gray);
    margin-bottom: 10px;
}
.field__label.error {
    color: var(--color-red);
}
.field__forgot {
    font-size: 16px;
}

.input {
    width: 100%;
    height: 58px;
    max-width: 440px;
    min-width: 300px;
    padding: 0 18px;
    font-size: 17px;
    color: var(--text);
    background: var(--surface-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: ease-in-out .1s border;
}

.input:focus, .input:hover {
    border: 2px solid var(--brand-primary);
    outline: none;
}

.input::placeholder {
    color: var(--text-muted);
}

/* Select-style field (caret + optional flag) */
/*.select {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
*/

.flag {
    width: 20px;
    height: auto;
}

.input-select {
    width: 100%;
    min-width: 300px;
    max-width: 440px;
    height: 58px;
    padding: 0 18px;
    font-size: 17px;
    font-family: inherit;
    color: var(--text);
    background-color: var(--surface-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235C6C79' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
    transition: border .1s ease-in-out;
}

.input-select:hover,
.input-select:focus {
    border: 2px solid var(--brand-primary);
    outline: none;
}
.input-select:disabled {
    background-color: var(--surface-primary);
    color: var(--neutral-dark-gray);
    cursor: not-allowed;
    opacity: 1; /* prevent browser default dimming in favour of our own treatment */
}
.input-select:disabled:hover {
    border: 1px solid var(--border); /* suppress the hover highlight */
}
/* Disabled / locked field */
.input--locked {
    background: var(--surface-primary);
    color: var(--neutral-light-gray);
    cursor: not-allowed;
    min-width: 300px;
    max-width: 440px;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10 and Edge */
    user-select: none; /* Standard syntax (Chrome, Opera) */
}

.input--locked .select__caret {
    width: 16px;
    height: 16px;
    transition: transform .15s ease;
}

.input--locked:hover {
    border: 1px solid var(--border);
}

.field__label .lock {
    font-size: 13px;
}
.input--readonly {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 58px;
    min-width: 300px;
    max-width: 440px;
    padding: 0 18px;
    background: var(--surface-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 17px;
    color: var(--neutral-dark-gray);
    cursor: default;
    -webkit-user-select: none;
    user-select: none;
}


/* Primary button */
.btn-primary {
    width: 100%;
    height: 58px;
    max-width:440px;
    margin-top: 28px;
    font-size: 19px;
    font-weight: 700;
    color: var(--color-light);
    background: var(--brand-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.btn-primary:hover {
    opacity: .8;
}
.btn-primary:disabled, .btn-primary:hover:disabled {
    cursor:not-allowed;
    background: var(--neutral-light-gray);
}



/* Divider */
.divider {
    margin: 30px 0;
    border: none;
    border-top: 1px solid var(--border);
}

/* Fine print */
.fine-print {
    font-size: 16px;
    color: var(--neutral-dark-gray);
    line-height: 1.5;
}

.system-use {
    margin-top: 22px;
    white-space: pre-wrap;
    font-size: 16px;
    max-width:440px;
    color: var(--neutral-dark-gray);
    line-height: 1.5;
}

.system-use ul {
    padding-left: 20px;
}

.system-use-toggle {
    display: none;
}

.system-use-wrap-agreement {
    position: relative;
    max-height: 150px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.system-use-wrap {
    position: relative;
    max-height: 72px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.system-use-wrap-agreement:after {
    content: "";
    opacity: 1; /* existing behavior */
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.system-use-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.system-use-wrap-agreement:not(.is-expandable)::after {
    opacity: 0;
    pointer-events: none;
}

.system-use-toggle:checked ~ .system-use-wrap {
    max-height: 500px;
}

.system-use-toggle:checked ~ .system-use-wrap-agreement {
    max-height: 500px;
    overflow-y: auto;
}

.system-use-toggle:checked ~ .system-use-wrap::after {
    opacity: 0;
}

.system-use-toggle:checked ~ .system-use-wrap-agreement::after {
    opacity: 0;
}

.expander {
    display: none; /* hidden by default */
    align-items: center;
    color: var(--neutral-dark-gray);
    gap: 6px;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}
.system-use-wrap-agreement.is-expandable ~ .expander {
    display: inline-flex;
}
.expander-icon {
    width: 20px;
    height: 20px;
    display: block;
}

.expander-text--collapse,
.expander-icon--collapse {
    display: none;
}

.system-use-toggle:checked ~ .expander .expander-text--expand,
.system-use-toggle:checked ~ .expander .expander-icon--expand {
    display: none;
}

.system-use-toggle:checked ~ .expander .expander-text--collapse,
.system-use-toggle:checked ~ .expander .expander-icon--collapse {
    display: inline;
}

.system-use-toggle:checked ~ .expander .expander-icon--collapse {
    display: block;
}


/* Info / help note */
.note {
    margin-top: 30px;
    padding: 16px 18px;
    background: var(--surface-primary);
    border-radius: 8px;
    font-size: 16px;
    color: var(--neutral-dark-gray);
    line-height: 1.5;
}

.help {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: var(--surface-primary);
    border-radius: 8px;
    font-size: 16px;
    color: var(--neutral-dark-gray);
}

/* Code (OTP) input boxes */
.code-inputs {
    display: flex;
    gap: 14px;
    margin-top: 12px;
    max-width:440px;
}

.code-inputs .cell {
    width: 56px;
    height: 64px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-secondary);
    flex-grow: 1;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--brand-primary);
    outline: none;
}

.code-inputs .cell:focus {
    border-color: var(--brand-primary);
}
.code-inputs .cell:not(:placeholder-shown) {
    border-color: var(--brand-primary);
}
.code-inputs .cell.code-error {
    border-color: var(--color-red);
}
.resend {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 16px;
    color: var(--neutral-dark-gray);
}

/* Agreement buttons */
.agree-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.btn-agree,
.btn-disagree {
    height: 56px;
    width:215px;
    flex: 1;
    font-size: 19px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
}

.btn-agree {
    color: #ffffff;
    background: var(--brand-primary);
    border: 1px solid var(--brand-primary);
}

.btn-disagree {
    color: var(--brand-primary);
    background: #ffffff;
    border: 1px solid var(--brand-primary);
}

.form-panel__inner {
    width: 100%;
    max-width: 440px;
    margin-top: auto;
    margin-bottom: auto;
}

.form-panel__inner--wide {
    max-width: 650px;
}

/* MFA enrollment */

.enroll-section {
    margin-bottom: 8px;
}
.enroll-section ol {
    margin-left:25px;
}
 
.enroll-section__header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    margin-bottom: 10px;
    color: var(--brand-primary);
}
 
.enroll-section__desc {
    font-size: 15px;
    color: var(--neutral-dark-gray);
    line-height: 1.5;
    margin-bottom: 14px;
}
 
.enroll-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
}
 
.enroll-badge--ready {
    background: var(--accent-light-blue);
    color: var(--brand-primary);
}
 
.enroll-badge--verified {
    background: var(--accent-light-blue);
    color: var(--brand-primary);
}
 
.enroll-badge--success {
    background: var(--color-light-green);
    color: var(--color-active-green);
}
 
.enroll-qr-wrap {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}
 
.enroll-qr {
    width: 160px;
    height: 160px;
    border: 4px solid var(--surface-secondary);
    box-shadow: 0 2px 12px rgba(0,0,0,.1);
    border-radius: 8px;
}
 
.enroll-manual {
    gap: 10px;
    background: var(--surface-primary);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    color: var(--neutral-dark-gray);
}
 
.enroll-manual__label {
    flex-shrink: 0;
}
 
.enroll-manual__key {
    font-family: monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-primary);
    letter-spacing: 2px;
    flex: 1;
}
 
.enroll-copy {
    color: var(--neutral-dark-gray);
    font-size: 16px;
    margin-left:10px;
}
 
.enroll-copy:hover {
    color: var(--brand-primary);
}
 
.enroll-contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}
 
.enroll-contact-row .input--readonly {
    flex: 1;
}
 
.enroll-change-link {
    font-size: 15px;
    white-space: nowrap;
    flex-shrink: 0;
}
 
.enroll-send-btn {
    margin-top: 12px;
    height: 46px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: var(--color-light);
    background: var(--accent-blue);
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
 
.enroll-send-btn:hover {
    opacity: .85;
}
 
.enroll-send-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}
 
.enroll-code-error {
    font-size: 14px;
    color: var(--color-red);
    margin-top: 8px;
    min-height: 18px;
}

.about-h2 {
    font-weight: 400 !important;
}
.about-logo {
    margin-top:-100px;
}

/* Laptop Screens */
@media (max-width: 1150px) {
    .form-panel {
        padding: 25px;
    }

}
/* Tablet and Mobile Screens */

@media (max-width: 900px) {
    .page {
        grid-template-columns: 1fr;
    }

    .form,
    .form-xl,
    .system-use,
    .form__title,
    .form__title-message {
        width: 100%;
        max-width: calc(100vw - 30px);
    }

    .form-panel__inner,
    .form-panel__inner--wide {
        width: 100%;
        max-width: 100%;
    }

    .btn-agree,
    .btn-disagree {
        height: 50px;
        width: 150px;
    }

    .form-panel {
        order: 1;
        padding-top: 30px;
        padding-bottom: 30px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .brand-panel {
        display: block;
        order: 2;
        align-items: center;
        gap: 25px;
        background-color: var(--surface-primary);
        color: var(--brand-primary);
        padding: 15px 25px;
    }
    .brand-footer__product {
        font-size: 18px;
    }

    .code-inputs .cell {
        width: 42px;
        height: 48px;
        font-size: 20px;
    }

    .brand-footer {
        margin-top: 20px;
    }

    .brand-app, .brand-hero, .brand-logo {
        display: none;
    }

    .about-h2 {
        font-size: 28px;
    }
    .about-p {
        font-size: 12px;
    }
    .about-h3 {
        font-size: 17px;
    }
        .about-h3 a {
            font-size: 15px;
        }
    .about-logo {
        width: 100px;
        height: 100px;
        margin-top: -50px;
    }
}

    @media (max-width: 600px) {
        .about-h2 {
            font-size: 22px;
        }
        .about-p {
            font-size: 12px;
        }
        .about-h3 {
            font-size: 16px;
        }
        .about-h3 a {
            font-size: 14px;
        }
        .form-panel {
            padding-left: 15px;
            padding-right: 15px;
        }

        .form,
        .form-xl {
            width: 100%;
            max-width: 100%;
        }

        .form__title {
            font-size: 30px;
        }

        .form__title-message {
            font-size: 18px;
        }

        .form__subtitle {
            font-size: 15px;
            line-height: 1.45;
        }

        .enroll-section {
            font-size: 14px;
        }

        .enroll-section__header {
            font-size: 15px;
        }

        .enroll-section__desc {
            font-size: 14px;
        }
        .enroll-manual {
            font-size: 13px;
            padding: 10px 12px;
        }

        .enroll-manual__key {
            font-size: 11px;
            letter-spacing: 1px;
            overflow-wrap: anywhere;
            word-break: break-word;
        }

        .note {
            font-size: 14px;
            padding: 14px;
        }

        .fine-print {
            font-size: 13px;
        }

        .field__label {
            font-size: 14px;
        }

        .input,
        .input-select,
        .input--readonly,
        .input--locked {
            min-width: 0;
            width: 100%;
            font-size: 15px;
        }

        .enroll-send-btn {
            font-size: 14px;
            padding: 0 18px;
        }

        .code-inputs {
            gap: 8px;
            width: 100%;
        }

            .code-inputs .cell {
                width: auto;
                min-width: 0;
                flex: 1;
                height: 48px;
                font-size: 20px;
            }

        .btn-primary {
            font-size: 16px;
        }
    }


