/*=========================================================
WORKSTATION CRM

FILE:
crm/assets/css/signin.css

SYSTEM:
PUBLIC AUTHENTICATION INTERFACE

VERSION:
3.0

DESIGN:
- Syracuse Orange corporate panel
- Corporate Blue lettering
- White workspace
- Subtle black accents
- Clean enterprise appearance
- Responsive desktop, tablet and mobile

PURPOSE:
- Match the Workstation CRM design
- Preserve existing index.php compatibility
- Support secure administrator sign-in
- Maintain accessibility and responsive behavior

IMPORTANT:
- Visual styling only
- No authentication logic changes
- No MFA changes
=========================================================*/


/* =====================================================
   DESIGN SYSTEM
===================================================== */

:root {

    color-scheme: light;

    --crm-orange: #F76900;
    --crm-orange-hover: #DC5E00;
    --crm-orange-soft: #FFF0E5;

    --crm-blue: #0077C8;
    --crm-blue-hover: #005A99;

    --crm-white: #FFFFFF;
    --crm-black: #111111;

    --crm-text: #0077C8;
    --crm-muted: #555555;

    --crm-border: #E0E0E0;
    --crm-background: #FFFFFF;

    --crm-danger: #D92D20;
    --crm-warning: #B77900;
    --crm-success: #188038;

    --crm-radius: 14px;

    --crm-shadow:
        0 12px 36px rgba(0, 0, 0, 0.06);

}


/* =====================================================
   RESET
===================================================== */

*,
*::before,
*::after {

    box-sizing: border-box;

}

html {

    width: 100%;
    min-height: 100%;

}

body {

    width: 100%;

    min-height: 100vh;
    min-height: 100dvh;

    margin: 0;

    background: var(--crm-background);

    color: var(--crm-text);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    -webkit-font-smoothing: antialiased;

}

button,
input {

    font: inherit;

}

button {

    cursor: pointer;

}


/* =====================================================
   MAIN AUTHENTICATION AREA
===================================================== */

.crm-auth {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 100vh;
    min-height: 100dvh;

    padding: 32px 20px;

    background: #FFFFFF;

}


/* =====================================================
   CORPORATE SIGN-IN PANEL
===================================================== */

.crm-auth-panel {

    width: 100%;
    max-width: 450px;

    padding: 0 38px 34px;

    background: #FFFFFF;

    border: 1px solid var(--crm-border);

    border-radius: var(--crm-radius);

    box-shadow: var(--crm-shadow);

    overflow: hidden;

}


/* =====================================================
   SYRACUSE ORANGE HEADER
===================================================== */

.crm-auth-header {

    margin:
        0 -38px 34px;

    padding:
        34px 28px 30px;

    background: var(--crm-orange);

    text-align: center;

}

.crm-auth-header h1 {

    margin: 0;

    color: #FFFFFF;

    font-size: 27px;
    font-weight: 700;

    letter-spacing: -0.7px;

    line-height: 1.2;

}

.crm-auth-header p {

    margin: 12px 0 0;

    color: #FFFFFF;

    font-size: 12px;

    font-weight: 500;

    line-height: 1.5;

    opacity: 0.95;

}


/* =====================================================
   SIGN-IN FORM
===================================================== */

.crm-signin-form {

    display: flex;

    flex-direction: column;

    gap: 20px;

}

.crm-field {

    display: flex;

    flex-direction: column;

    gap: 8px;

}


/* =====================================================
   CORPORATE BLUE LABELS
===================================================== */

.crm-field label {

    color: var(--crm-blue);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 0.15px;

}


/* =====================================================
   INPUT FIELDS
===================================================== */

.crm-field input {

    width: 100%;

    min-height: 48px;

    padding: 0 14px;

    border:
        1px solid var(--crm-border);

    border-radius: 8px;

    background: #FFFFFF;

    color: var(--crm-black);

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;

}

.crm-field input::placeholder {

    color: #777777;

}

.crm-field input:hover {

    border-color: #A0A0A0;

}

.crm-field input:focus {

    border-color: var(--crm-blue);

    box-shadow:
        0 0 0 3px rgba(0, 119, 200, 0.12);

}

.crm-field input:disabled {

    background: #F5F5F5;

    color: #777777;

    cursor: not-allowed;

}


/* =====================================================
   PASSWORD VISIBILITY
===================================================== */

.crm-password-toggle {

    align-self: flex-end;

    padding: 0;

    border: 0;

    background: transparent;

    color: var(--crm-blue) !important;

    font-size: 12px;

    font-weight: 600;

    text-decoration: none;

}

.crm-password-toggle:hover {

    color: var(--crm-blue-hover) !important;

    text-decoration: underline;

}

.crm-password-toggle:focus-visible {

    outline: 2px solid var(--crm-blue);

    outline-offset: 3px;

}


/* =====================================================
   SIGN-IN BUTTON
===================================================== */

.crm-signin-button {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 49px;

    margin-top: 6px;

    padding: 12px 18px;

    border: none;

    border-radius: 8px;

    background: var(--crm-orange);

    color: #FFFFFF;

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 0.2px;

    cursor: pointer;

    transition:
        background 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;

}

.crm-signin-button:hover:not(:disabled) {

    background: var(--crm-orange-hover);

    box-shadow:
        0 5px 14px rgba(247, 105, 0, 0.16);

}

.crm-signin-button:active:not(:disabled) {

    transform: translateY(1px);

}

.crm-signin-button:focus-visible {

    outline: 3px solid var(--crm-blue);

    outline-offset: 3px;

}

.crm-signin-button:disabled {

    opacity: 0.65;

    cursor: wait;

}


/* =====================================================
   AUTHENTICATION MESSAGES
===================================================== */

.crm-auth-message {

    margin: 0;

    color: var(--crm-muted);

    font-size: 12px;

    text-align: center;

    line-height: 1.6;

}


/* =====================================================
   ERROR / ACTION REQUIRED
===================================================== */

.crm-auth-message[role="alert"] {

    padding: 12px 14px;

    border:
        1px solid #F4D5D2;

    border-left:
        4px solid var(--crm-danger);

    border-radius: 6px;

    background: #FFF7F6;

    color: var(--crm-danger);

    font-size: 12px;

    font-weight: 600;

    text-align: left;

}


/* =====================================================
   OPTIONAL PENDING STATUS
===================================================== */

.crm-auth-message.is-pending {

    padding: 12px 14px;

    border:
        1px solid #F1E3B4;

    border-left:
        4px solid var(--crm-warning);

    border-radius: 6px;

    background: #FFF9E7;

    color: #865A00;

    text-align: left;

}


/* =====================================================
   OPTIONAL SUCCESS STATUS
===================================================== */

.crm-auth-message.is-success {

    padding: 12px 14px;

    border:
        1px solid #CDEBD4;

    border-left:
        4px solid var(--crm-success);

    border-radius: 6px;

    background: #EFFAF1;

    color: var(--crm-success);

    text-align: left;

}


/* =====================================================
   FOOTER
===================================================== */

.crm-auth-footer {

    margin-top: 32px;

    padding-top: 22px;

    border-top:
        1px solid var(--crm-border);

    color: var(--crm-muted);

    font-size: 11px;

    letter-spacing: 0.3px;

    text-align: center;

}


/* =====================================================
   SMALL CORPORATE ACCENT
===================================================== */

.crm-auth-footer::after {

    content: "";

    display: block;

    width: 38px;
    height: 3px;

    margin: 16px auto 0;

    border-radius: 3px;

    background: var(--crm-blue);

}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 768px) {

    .crm-auth {

        padding: 24px 16px;

    }

    .crm-auth-panel {

        max-width: 420px;

        padding:
            0 30px 30px;

    }

    .crm-auth-header {

        margin:
            0 -30px 30px;

        padding:
            30px 22px 28px;

    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 480px) {

    .crm-auth {

        padding: 18px 12px;

    }

    .crm-auth-panel {

        padding:
            0 22px 26px;

        border-radius: 10px;

    }

    .crm-auth-header {

        margin:
            0 -22px 28px;

        padding:
            28px 16px 26px;

    }

    .crm-auth-header h1 {

        font-size: 24px;

    }

    .crm-auth-header p {

        font-size: 11px;

    }

    .crm-field input {

        font-size: 16px;

    }

    .crm-signin-button {

        min-height: 48px;

    }

}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        transition: none !important;

        animation: none !important;

    }

}


/* =====================================================
   END OF WORKSTATION CRM SIGN-IN v3.0
===================================================== */