﻿/* =========================================================
   INTGEO AUTHENTICATION PAGE
   Login / Signup
   Theme-aware styling
   ========================================================= */


/* =========================================================
   THEME VARIABLES
   ========================================================= */

.auth-page {
    /* Default / Dark theme */

    --auth-bg: #07131d;
    --auth-surface: #0d1d29;
    --auth-surface-2: #122838;
    --auth-border: #234052;
    --auth-border-hover: #00a8e8;
    --auth-text: #f4f7fb;
    --auth-text-secondary: #aebdca;
    --auth-text-muted: #7890a1;
    --auth-primary: #00a8e8;
    --auth-primary-hover: #0095cf;
    --auth-success: #18c77a;
    --auth-danger: #ff5b5b;
    --auth-warning: #f5b942;
    --auth-input-bg: #091923;
    --auth-input-border: #294454;
    --auth-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    --auth-radius: 10px;
    min-height: 100vh;
    width: 100%;
    background: var(--auth-bg);
    color: var(--auth-text);
    font-family: "Segoe UI", Arial, sans-serif;
    box-sizing: border-box;
}


    /* =========================================================
   LIGHT THEME
   ========================================================= */

    .auth-page[data-theme="light"] {
        --auth-bg: #eef3f7;
        --auth-surface: #ffffff;
        --auth-surface-2: #f5f8fa;
        --auth-border: #d3dee6;
        --auth-border-hover: #0099d4;
        --auth-text: #162936;
        --auth-text-secondary: #526773;
        --auth-text-muted: #738691;
        --auth-primary: #008dcc;
        --auth-primary-hover: #007cb5;
        --auth-success: #139b5c;
        --auth-danger: #d9363e;
        --auth-warning: #bd7b00;
        --auth-input-bg: #ffffff;
        --auth-input-border: #cbd8e0;
        --auth-shadow: 0 20px 50px rgba(30, 55, 70, 0.15);
    }


    /* =========================================================
   FOREST THEME
   ========================================================= */

    .auth-page[data-theme="forest"] {
        --auth-bg: #081711;
        --auth-surface: #10251b;
        --auth-surface-2: #163022;
        --auth-border: #28543a;
        --auth-border-hover: #29c76f;
        --auth-text: #f1faf4;
        --auth-text-secondary: #b1c9b8;
        --auth-text-muted: #789685;
        --auth-primary: #29c76f;
        --auth-primary-hover: #20ad5e;
        --auth-success: #32d583;
        --auth-danger: #ff6868;
        --auth-warning: #e4b84d;
        --auth-input-bg: #0a1c14;
        --auth-input-border: #31563f;
        --auth-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }


    /* =========================================================
   SATELLITE THEME
   ========================================================= */

    .auth-page[data-theme="satellite"] {
        --auth-bg: #07151c;
        --auth-surface: #10262f;
        --auth-surface-2: #17343e;
        --auth-border: #285360;
        --auth-border-hover: #00d4ff;
        --auth-text: #f2fbff;
        --auth-text-secondary: #b4d2dc;
        --auth-text-muted: #7799a5;
        --auth-primary: #00c4ee;
        --auth-primary-hover: #00a9cf;
        --auth-success: #24d28a;
        --auth-danger: #ff6565;
        --auth-warning: #e9bd55;
        --auth-input-bg: #091b22;
        --auth-input-border: #315461;
        --auth-shadow: 0 20px 65px rgba(0, 0, 0, 0.55);
    }


    /* =========================================================
   HIGH CONTRAST THEME
   ========================================================= */

    .auth-page[data-theme="high-contrast"] {
        --auth-bg: #000000;
        --auth-surface: #000000;
        --auth-surface-2: #111111;
        --auth-border: #ffffff;
        --auth-border-hover: #ffff00;
        --auth-text: #ffffff;
        --auth-text-secondary: #ffffff;
        --auth-text-muted: #eeeeee;
        --auth-primary: #ffff00;
        --auth-primary-hover: #ffff66;
        --auth-success: #00ff00;
        --auth-danger: #ff4444;
        --auth-warning: #ffff00;
        --auth-input-bg: #000000;
        --auth-input-border: #ffffff;
        --auth-shadow: 0 0 0 2px #ffffff;
    }


    /* =========================================================
   GLOBAL BOX SIZING
   ========================================================= */

    .auth-page *,
    .auth-page *::before,
    .auth-page *::after {
        box-sizing: border-box;
    }


/* =========================================================
   HEADER
   ========================================================= */

.auth-header {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 28px;
    background: var(--auth-surface);
    border-bottom: 1px solid var(--auth-border);
}


/* =========================================================
   BRAND
   ========================================================= */

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}


.auth-logo,
.auth-info-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient( 135deg, var(--auth-primary), #087fb4 );
    color: #ffffff;
    font-weight: 800;
    border-radius: 10px;
    box-shadow: 0 5px 18px rgba(0, 168, 232, 0.25);
}


.auth-logo {
    width: 46px;
    height: 46px;
    font-size: 18px;
}


.auth-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
}


.auth-subtitle {
    margin-top: 3px;
    font-size: 11px;
    color: var(--auth-text-muted);
}


/* =========================================================
   THEME CONTROL
   ========================================================= */

.auth-theme-control {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    color: var(--auth-text-secondary);
}


    .auth-theme-control select {
        min-width: 145px;
        padding: 8px 30px 8px 10px;
        border-radius: 7px;
        border: 1px solid var(--auth-border);
        background: var(--auth-surface-2);
        color: var(--auth-text);
        outline: none;
        cursor: pointer;
    }


        .auth-theme-control select:focus {
            border-color: var(--auth-primary);
            box-shadow: 0 0 0 2px rgba(0, 168, 232, 0.15);
        }


/* =========================================================
   MAIN
   ========================================================= */

.auth-main {
    min-height: calc(100vh - 78px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px 25px;
}


/* =========================================================
   MAIN CONTAINER
   ========================================================= */

.auth-container {
    width: 100%;
    max-width: 1050px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(400px, 480px);
    gap: 55px;
    align-items: center;
}


/* =========================================================
   INFORMATION PANEL
   ========================================================= */

.auth-info {
    padding: 20px 10px;
}


.auth-info-logo {
    width: 62px;
    height: 62px;
    margin-bottom: 25px;
    font-size: 23px;
    border-radius: 14px;
}


.auth-info h1 {
    margin: 0 0 15px;
    font-size: 34px;
    line-height: 1.15;
}


.auth-info > p {
    max-width: 520px;
    margin: 0 0 30px;
    color: var(--auth-text-secondary);
    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   FEATURES
   ========================================================= */

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}


.auth-feature {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--auth-text-secondary);
    font-size: 14px;
}


.auth-feature-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 168, 232, 0.13);
    color: var(--auth-primary);
    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   AUTH CARD
   ========================================================= */

.auth-card {
    width: 100%;
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    padding: 32px;
    box-shadow: var(--auth-shadow);
}


/* =========================================================
   AUTH PANEL
   ========================================================= */

.auth-panel {
    width: 100%;
}


.auth-hidden {
    display: none;
}


/* =========================================================
   HEADING
   ========================================================= */

.auth-heading {
    margin-bottom: 25px;
}


    .auth-heading h2 {
        margin: 0 0 7px;
        font-size: 25px;
        font-weight: 700;
    }


    .auth-heading p {
        margin: 0;
        color: var(--auth-text-secondary);
        font-size: 13px;
    }


/* =========================================================
   FORM
   ========================================================= */

.auth-form-group {
    margin-bottom: 17px;
}


    .auth-form-group label {
        display: block;
        margin-bottom: 7px;
        font-size: 12px;
        font-weight: 600;
        color: var(--auth-text-secondary);
    }


    .auth-form-group input {
        width: 100%;
        height: 42px;
        padding: 9px 12px;
        border: 1px solid var(--auth-input-border);
        border-radius: 7px;
        background: var(--auth-input-bg);
        color: var(--auth-text);
        font-family: inherit;
        font-size: 13px;
        outline: none;
        transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }

    /* =========================================================
   SELECT / DROPDOWN
   ========================================================= */

    .auth-form-group select {
        width: 100%;
        height: 42px;
        padding: 9px 12px;
        border: 1px solid var(--auth-input-border);
        border-radius: 7px;
        background: var(--auth-input-bg);
        color: var(--auth-text);
        font-family: inherit;
        font-size: 13px;
        outline: none;
        cursor: pointer;
        transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }


        .auth-form-group select:focus {
            border-color: var(--auth-primary);
            box-shadow: 0 0 0 2px rgba(0, 168, 232, 0.12);
        }


        .auth-form-group select option {
            background: var(--auth-input-bg);
            color: var(--auth-text);
        }







        .auth-form-group input::placeholder {
            color: var(--auth-text-muted);
            opacity: 1;
        }


        .auth-form-group input:focus {
            border-color: var(--auth-primary);
            box-shadow: 0 0 0 2px rgba(0, 168, 232, 0.12);
        }


/* =========================================================
   LABEL ROW
   ========================================================= */

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


    .auth-label-row a {
        color: var(--auth-primary);
        text-decoration: none;
        font-size: 11px;
    }


        .auth-label-row a:hover {
            text-decoration: underline;
        }


/* =========================================================
   PASSWORD
   ========================================================= */

.auth-password-wrapper {
    position: relative;
    width: 100%;
}


    .auth-password-wrapper input {
        padding-right: 43px;
    }


.auth-password-toggle {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--auth-text-muted);
    cursor: pointer;
    border-radius: 5px;
}


    .auth-password-toggle:hover {
        background: var(--auth-surface-2);
        color: var(--auth-primary);
    }


/* =========================================================
   PASSWORD HINT
   ========================================================= */

.auth-password-hint {
    margin-top: 5px;
    color: var(--auth-text-muted);
    font-size: 10px;
}


/* =========================================================
   REMEMBER ME
   ========================================================= */

.auth-remember {
    margin: 3px 0 18px;
}


    .auth-remember label {
        display: flex;
        align-items: center;
        gap: 7px;
        cursor: pointer;
        color: var(--auth-text-secondary);
        font-size: 12px;
    }


    .auth-remember input {
        width: 14px;
        height: 14px;
        accent-color: var(--auth-primary);
    }


/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.auth-submit {
    width: 100%;
    height: 43px;
    border: none;
    border-radius: 7px;
    background: var(--auth-primary);
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}


    .auth-submit:hover {
        background: var(--auth-primary-hover);
        box-shadow: 0 5px 15px rgba(0, 168, 232, 0.20);
    }


    .auth-submit:active {
        transform: translateY(1px);
    }


    .auth-submit:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        box-shadow: none;
    }


/* =========================================================
   SWITCH LOGIN / SIGNUP
   ========================================================= */

.auth-switch {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 23px;
    padding-top: 20px;
    border-top: 1px solid var(--auth-border);
    color: var(--auth-text-muted);
    font-size: 12px;
}


    .auth-switch button {
        padding: 0;
        border: none;
        background: transparent;
        color: var(--auth-primary);
        font-family: inherit;
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
    }


        .auth-switch button:hover {
            text-decoration: underline;
        }


/* =========================================================
   VALIDATION / MESSAGES
   ========================================================= */

.auth-field-error {
    min-height: 0;
    margin-top: 4px;
    color: var(--auth-danger);
    font-size: 10px;
}


.auth-message {
    display: none;
    margin-top: 13px;
    padding: 9px 11px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.5;
}


    .auth-message.success {
        display: block;
        color: var(--auth-success);
        background: rgba(24, 199, 122, 0.08);
        border: 1px solid rgba(24, 199, 122, 0.25);
    }


    .auth-message.error {
        display: block;
        color: var(--auth-danger);
        background: rgba(255, 91, 91, 0.08);
        border: 1px solid rgba(255, 91, 91, 0.25);
    }


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .auth-container {
        grid-template-columns: 1fr;
        max-width: 520px;
        gap: 20px;
    }


    .auth-info {
        text-align: center;
        padding: 0;
    }


    .auth-info-logo {
        margin-left: auto;
        margin-right: auto;
    }


    .auth-info > p {
        margin-left: auto;
        margin-right: auto;
    }


    .auth-features {
        display: none;
    }
}


@media (max-width: 600px) {

    .auth-header {
        padding: 10px 15px;
    }


    .auth-brand-text {
        display: none;
    }


    .auth-theme-control label {
        display: none;
    }


    .auth-theme-control select {
        min-width: 120px;
    }


    .auth-main {
        padding: 20px 12px;
    }


    .auth-card {
        padding: 23px 18px;
    }


    .auth-info h1 {
        font-size: 26px;
    }
}
