﻿/* ================================================================
   SAHAGO LOGIN
   Desktop: Full background + header + footer + login panel
   Narrow / portrait: Only login panel
   ================================================================ */

:root {
    --sg-login-green: #14e2ad;
    --sg-login-green-2: #0cba8d;
    --sg-login-blue: #0a73be;
    --sg-login-dark: #03101d;
    --sg-login-panel: rgba(3, 30, 52, .90);
    --sg-login-border: rgba(85, 202, 235, .36);
    --sg-login-text: #f5fbff;
    --sg-login-muted: #9fb6c7;
}


/* ================================================================
   GLOBAL RESET
   ================================================================ */

html,
body {
    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    min-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}


    body.sahago-auth-body {
        width: 100vw !important;
        min-width: 100vw !important;
        min-height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        overflow: hidden !important;
        background: #020d18 !important;
    }


/*
    site.css veya Bootstrap tarafından gelen
    eski container sınırlamalarını kaldır.
*/

.sahago-auth-body main,
.sahago-auth-body .container,
.sahago-auth-body .container-fluid,
.sahago-auth-body .sg-auth-wrap,
.sahago-auth-body .sg-auth-shell,
.sahago-auth-body .sg-auth-card {
    width: auto;
    max-width: none !important;
    margin: 0;
    padding: 0;
}


/* ================================================================
   PAGE
   ================================================================ */

.sahago-login-page {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 700px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #020d18;
    color: var(--sg-login-text);
}


/* ================================================================
   BACKGROUND
   ================================================================ */

.sahago-login-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    background-image: url('/loginback.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}


/*
    Sağ tarafta login panelinin
    okunabilirliğini artırır.
*/

.sahago-login-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient( 90deg, rgba(0, 10, 20, .00) 0%, rgba(0, 10, 20, .00) 52%, rgba(0, 10, 20, .08) 62%, rgba(0, 10, 20, .24) 72%, rgba(0, 10, 20, .58) 100% );
}


/* ================================================================
   HEADER
   ================================================================ */

.sahago-login-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    height: 92px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px clamp(35px, 4vw, 82px);
    pointer-events: none;
}


.sahago-login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    pointer-events: auto;
}


    .sahago-login-brand:hover {
        color: white;
    }


.sahago-header-logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
    filter: drop-shadow( 0 8px 22px rgba(14, 220, 166, .30) );
}


.sahago-header-brand-text {
    display: flex;
    flex-direction: column;
}


    .sahago-header-brand-text strong {
        color: #ffffff;
        font-size: 24px;
        line-height: 1;
        font-weight: 850;
        letter-spacing: -.035em;
    }


    .sahago-header-brand-text span {
        margin-top: 5px;
        color: #bfd2df;
        font-size: 11px;
    }


.sahago-header-slogan {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #c6d6e2;
    font-size: 11px;
    line-height: 1.45;
    text-align: left;
}


.sahago-slogan-line {
    display: block;
    width: 2px;
    height: 38px;
    border-radius: 999px;
    background: linear-gradient( 180deg, #18ebaf, #08a982 );
    box-shadow: 0 0 16px rgba(20, 226, 173, .50);
}


/* ================================================================
   MAIN
   ================================================================ */

.sahago-login-main {
    position: absolute;
    inset: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}


/*
    Sol tarafın kendisi background image olduğu için
    HTML elemanına ihtiyaç yok.
*/

.sahago-login-visual-space {
    display: none;
}


/* ================================================================
   LOGIN PANEL POSITION
   ================================================================ */

.sahago-login-panel {
    position: absolute;
    z-index: 15;
    top: 50%;
    right: clamp( 38px, 5vw, 105px );
    transform: translateY(-50%);
    width: clamp( 370px, 26vw, 470px );
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* ================================================================
   PANEL GLOW
   ================================================================ */

.sahago-login-panel-glow {
    position: absolute;
    z-index: -1;
    top: 12%;
    left: 10%;
    width: 80%;
    height: 76%;
    border-radius: 50%;
    background: rgba(15, 220, 170, .13);
    filter: blur(80px);
    pointer-events: none;
}


/* ================================================================
   LOGIN CARD
   ================================================================ */

.sahago-login-card {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: clamp( 25px, 2vw, 36px );
    border: 1px solid var(--sg-login-border);
    border-radius: 24px;
    background: linear-gradient( 145deg, rgba(5, 44, 72, .92), rgba(2, 25, 47, .91) );
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .055);
    overflow: hidden;
}


    .sahago-login-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 12%;
        right: 12%;
        height: 1px;
        background: linear-gradient( 90deg, transparent, rgba(31, 231, 183, .85), transparent );
    }


/* ================================================================
   PANEL BRAND
   ================================================================ */

.sahago-panel-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 27px;
}


.sahago-panel-logo {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    object-fit: contain;
}


.sahago-panel-brand > div {
    display: flex;
    flex-direction: column;
}


.sahago-panel-brand strong {
    color: white;
    font-size: 22px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: -.03em;
}


.sahago-panel-brand span {
    margin-top: 4px;
    color: #a8bfce;
    font-size: 10px;
}


/* ================================================================
   LOGIN TITLE
   ================================================================ */

.sahago-login-title {
    margin-bottom: 23px;
}


.sahago-login-eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--sg-login-green);
    font-size: 9px;
    letter-spacing: .15em;
    font-weight: 800;
}


.sahago-login-title h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp( 24px, 1.8vw, 30px );
    line-height: 1.1;
    font-weight: 850;
    letter-spacing: -.035em;
}


.sahago-login-title p {
    margin: 8px 0 0;
    color: #a9bdcb;
    font-size: 11px;
    line-height: 1.55;
}


/* ================================================================
   FORM
   ================================================================ */

.sahago-login-form {
    width: 100%;
}


.sahago-login-field {
    margin-bottom: 14px;
}


    .sahago-login-field label {
        display: block;
        margin-bottom: 6px;
        color: #c7d8e4;
        font-size: 10px;
        font-weight: 700;
    }


.sahago-input-wrap {
    position: relative;
    width: 100%;
}


.sahago-login-input {
    display: block;
    width: 100%;
    height: 46px;
    box-sizing: border-box;
    padding: 0 46px;
    border: 1px solid rgba(122, 190, 218, .25);
    border-radius: 11px;
    outline: none;
    color: #eaf7ff;
    background: rgba(5, 33, 54, .72);
    font-size: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
    transition: border-color .20s ease, box-shadow .20s ease, background .20s ease;
}


    .sahago-login-input::placeholder {
        color: #7891a2;
        opacity: 1;
    }


    .sahago-login-input:hover {
        border-color: rgba(89, 203, 221, .42);
    }


    .sahago-login-input:focus {
        border-color: rgba(20, 226, 173, .82);
        background: rgba(4, 40, 63, .91);
        box-shadow: 0 0 0 3px rgba(20, 226, 173, .08), 0 0 25px rgba(20, 226, 173, .08);
    }


/* ================================================================
   INPUT ICON
   ================================================================ */

.sahago-input-icon {
    position: absolute;
    z-index: 3;
    left: 15px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: #89a8bb;
    pointer-events: none;
}


    .sahago-input-icon svg {
        display: block;
        width: 100%;
        height: 100%;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }


/* ================================================================
   PASSWORD
   ================================================================ */

.sahago-password-input {
    padding-right: 50px;
}


.sahago-password-toggle {
    position: absolute;
    z-index: 4;
    right: 7px;
    top: 50%;
    width: 34px;
    height: 34px;
    transform: translateY(-50%);
    padding: 0;
    border: 0;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: transparent;
    color: #7c9caf;
    cursor: pointer;
    transition: color .20s ease, background .20s ease;
}


    .sahago-password-toggle:hover,
    .sahago-password-toggle.is-visible {
        color: var(--sg-login-green);
        background: rgba(20, 226, 173, .08);
    }


    .sahago-password-toggle svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }


/* ================================================================
   VALIDATION
   ================================================================ */

.sahago-validation {
    display: block;
    margin-top: 4px;
    color: #ff8792;
    font-size: 9px;
}


/* ================================================================
   REMEMBER
   ================================================================ */

.sahago-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 18px;
}


.sahago-remember {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}


    .sahago-remember input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }


.sahago-checkbox-ui {
    position: relative;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    box-sizing: border-box;
    border: 1px solid rgba(128, 189, 210, .55);
    border-radius: 5px;
    background: rgba(7, 35, 55, .55);
    transition: .18s ease;
}


.sahago-remember input:checked +
.sahago-checkbox-ui {
    background: var(--sg-login-green);
    border-color: var(--sg-login-green);
    box-shadow: 0 0 14px rgba(20, 226, 173, .26);
}


    .sahago-remember input:checked +
    .sahago-checkbox-ui::after {
        content: "";
        position: absolute;
        left: 5px;
        top: 2px;
        width: 5px;
        height: 9px;
        border: solid #013a2d;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }


.sahago-remember-text {
    color: #9eb5c5;
    font-size: 10px;
}


.sahago-secure-login-text {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #7896a9;
    font-size: 9px;
}


.sahago-secure-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sg-login-green);
    box-shadow: 0 0 9px rgba(20, 226, 173, .65);
}


/* ================================================================
   LOGIN BUTTON
   ================================================================ */

.sahago-login-submit {
    width: 100%;
    height: 49px;
    padding: 0;
    border: 0;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    background: linear-gradient( 110deg, #10c990, #13dca4 );
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 13px 32px rgba(10, 205, 149, .18);
    transition: transform .20s ease, box-shadow .20s ease, filter .20s ease;
}


    .sahago-login-submit:hover {
        transform: translateY(-2px);
        filter: brightness(1.06);
        box-shadow: 0 17px 38px rgba(10, 205, 149, .28);
    }


    .sahago-login-submit:active {
        transform: translateY(0);
    }


    .sahago-login-submit svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }


/* ================================================================
   FIRST SETUP
   ================================================================ */

.sahago-first-setup {
    margin-top: 18px;
    text-align: center;
    color: #7e9aab;
    font-size: 9px;
}


    .sahago-first-setup span {
        margin-right: 4px;
    }


    .sahago-first-setup a {
        color: #b8d1de;
        text-decoration: underline;
        text-underline-offset: 3px;
    }


        .sahago-first-setup a:hover {
            color: var(--sg-login-green);
        }


/* ================================================================
   INFO BOX
   ================================================================ */

.sahago-panel-info {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 23px;
    padding: 13px;
    border: 1px solid rgba(108, 186, 215, .15);
    border-radius: 12px;
    background: rgba(2, 24, 42, .30);
}


.sahago-panel-info-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: var(--sg-login-green);
    background: rgba(20, 226, 173, .07);
}


    .sahago-panel-info-icon svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }


.sahago-panel-info strong {
    display: block;
    margin-bottom: 3px;
    color: #dbeaf2;
    font-size: 9px;
}


.sahago-panel-info span {
    display: block;
    color: #7693a5;
    font-size: 8px;
    line-height: 1.5;
}


/* ================================================================
   ALERT
   ================================================================ */

.sahago-login-alert {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 11px;
    margin-bottom: 15px;
    border-radius: 9px;
    font-size: 10px;
}


.sahago-login-alert-danger {
    color: #ffd7db;
    border: 1px solid rgba(255, 83, 101, .22);
    background: rgba(181, 30, 47, .15);
}


.sahago-login-alert-success {
    color: #c8ffeb;
    border: 1px solid rgba(20, 226, 173, .22);
    background: rgba(20, 226, 173, .09);
}


.sahago-alert-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    font-weight: 900;
}


/* ================================================================
   FOOTER
   ================================================================ */

.sahago-login-footer {
    position: absolute;
    z-index: 30;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 76px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 12px clamp(35px, 4vw, 82px);
    border-top: 1px solid rgba(86, 161, 193, .12);
    background: linear-gradient( 90deg, rgba(1, 16, 29, .91), rgba(2, 26, 44, .84) );
    backdrop-filter: blur(11px);
    -webkit-backdrop-filter: blur(11px);
}


.sahago-footer-features {
    display: flex;
    align-items: center;
    gap: clamp( 22px, 3vw, 52px );
}


.sahago-footer-item {
    display: flex;
    align-items: center;
    gap: 9px;
}


.sahago-footer-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: var(--sg-login-green);
}


    .sahago-footer-icon svg {
        width: 23px;
        height: 23px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }


.sahago-footer-item strong {
    display: block;
    margin-bottom: 2px;
    color: #d8e7f0;
    font-size: 10px;
}


.sahago-footer-item div span {
    display: block;
    color: #758fa2;
    font-size: 8px;
}


.sahago-footer-quote {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 20px;
    border-left: 1px solid rgba(121, 174, 199, .12);
    color: #c0d2dd;
    font-size: 9px;
    font-style: italic;
    line-height: 1.5;
}


.sahago-quote-mark {
    color: var(--sg-login-green);
    font-size: 32px;
    line-height: 1;
    font-family: Georgia, serif;
}


/* ================================================================
   SHORT DESKTOP
   Örn: 1366 x 768
   ================================================================ */

@media (min-width: 1101px) and (max-height: 800px) and (orientation: landscape) {

    .sahago-login-header {
        height: 76px;
        padding-top: 11px;
        padding-bottom: 11px;
    }


    .sahago-header-logo {
        width: 46px;
        height: 46px;
    }


    .sahago-header-brand-text strong {
        font-size: 21px;
    }


    .sahago-login-panel {
        top: 49%;
        width: clamp( 350px, 25vw, 420px );
    }


    .sahago-login-card {
        padding: 22px;
    }


    .sahago-panel-brand {
        margin-bottom: 18px;
    }


    .sahago-login-title {
        margin-bottom: 17px;
    }


    .sahago-login-field {
        margin-bottom: 10px;
    }


    .sahago-login-input {
        height: 41px;
    }


    .sahago-login-options {
        margin-bottom: 13px;
    }


    .sahago-login-submit {
        height: 44px;
    }


    .sahago-panel-info {
        margin-top: 14px;
        padding: 9px;
    }


    .sahago-login-footer {
        min-height: 62px;
        padding-top: 7px;
        padding-bottom: 7px;
    }
}


/* ================================================================
   MID DESKTOP
   ================================================================ */

@media (max-width: 1400px) and (min-width: 1101px) {

    .sahago-login-panel {
        right: 35px;
        width: clamp( 355px, 29vw, 420px );
    }


    .sahago-login-header,
    .sahago-login-footer {
        padding-left: 30px;
        padding-right: 30px;
    }


    .sahago-footer-features {
        gap: 27px;
    }


    .sahago-footer-extra {
        display: none;
    }
}


/* ================================================================
   NARROW OR PORTRAIT
   ONLY LOGIN
   ================================================================ */

@media (max-width: 1100px), (orientation: portrait) {

    html,
    body {
        width: 100% !important;
        min-width: 100% !important;
        min-height: 100% !important;
        background: #03111d !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }


        body.sahago-auth-body {
            overflow-y: auto !important;
        }


    .sahago-login-page {
        width: 100%;
        height: auto;
        min-height: 100dvh;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 26px 18px;
        overflow: visible;
        background: radial-gradient( circle at 50% 15%, #0a3854 0%, #06263c 28%, #041a2b 55%, #03111d 100% );
    }


    /*
        Background advertisement completely hidden
    */

    .sahago-login-background {
        display: none !important;
    }


    .sahago-login-overlay {
        display: none !important;
    }


    /*
        Header hidden
    */

    .sahago-login-header {
        display: none !important;
    }


    /*
        Footer hidden
    */

    .sahago-login-footer {
        display: none !important;
    }


    /*
        Main only contains login
    */

    .sahago-login-main {
        position: static;
        inset: auto;
        width: 100%;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0;
    }


    .sahago-login-visual-space {
        display: none !important;
    }


    .sahago-login-panel {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        transform: none;
        width: 100%;
        max-width: 430px;
        margin: 0 auto;
        padding: 0;
    }


    .sahago-login-panel-glow {
        display: block;
        width: 85%;
        height: 75%;
        left: 7.5%;
        top: 12%;
    }


    .sahago-login-card {
        width: 100%;
        padding: 28px 25px;
        border-radius: 22px;
        background: linear-gradient( 145deg, rgba(6, 42, 67, .97), rgba(2, 24, 44, .98) );
        box-shadow: 0 25px 65px rgba(0, 0, 0, .42);
    }


    .sahago-panel-brand {
        justify-content: center;
        margin-bottom: 24px;
    }


    .sahago-login-title {
        text-align: center;
    }
}


/* ================================================================
   SMALL PHONE
   ================================================================ */

@media (max-width: 480px) {

    .sahago-login-page {
        padding: 16px 12px;
    }


    .sahago-login-card {
        padding: 23px 18px;
        border-radius: 19px;
    }


    .sahago-panel-brand {
        margin-bottom: 18px;
    }


    .sahago-panel-logo {
        width: 43px;
        height: 43px;
    }


    .sahago-panel-brand strong {
        font-size: 21px;
    }


    .sahago-login-title {
        margin-bottom: 20px;
    }


        .sahago-login-title h1 {
            font-size: 24px;
        }


        .sahago-login-title p {
            font-size: 10px;
        }


    .sahago-login-input {
        height: 45px;
        font-size: 12px;
    }


    .sahago-secure-login-text {
        display: none;
    }


    .sahago-login-options {
        justify-content: flex-start;
    }


    .sahago-panel-info {
        margin-top: 19px;
    }
}


/* ================================================================
   VERY SMALL PHONE HEIGHT
   ================================================================ */

@media (max-width: 480px) and (max-height: 720px) {

    .sahago-login-page {
        align-items: flex-start;
    }


    .sahago-login-card {
        padding: 18px;
    }


    .sahago-panel-brand {
        margin-bottom: 13px;
    }


    .sahago-login-title {
        margin-bottom: 13px;
    }


    .sahago-login-field {
        margin-bottom: 9px;
    }


    .sahago-login-input {
        height: 41px;
    }


    .sahago-login-options {
        margin-bottom: 11px;
    }


    .sahago-login-submit {
        height: 43px;
    }


    .sahago-panel-info {
        margin-top: 12px;
        padding: 9px;
    }
}
