/* =====================================================
   SMARTDESK HOSPITALITY
   LOGIN PAGE
   ===================================================== */


/* =====================================================
   ROOT
   ===================================================== */

:root {

    --primary: #0f766e;
    --primary-dark: #115e59;
    --primary-light: #ccfbf1;

    --background: #f5f7f9;
    --surface: #ffffff;

    --text: #172033;
    --text-soft: #64748b;
    --text-muted: #94a3b8;

    --border: #e2e8f0;

    --danger: #dc2626;
    --danger-light: #fef2f2;

    --success: #15803d;
    --success-light: #f0fdf4;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;

    --shadow:
        0 20px 60px rgba(15, 23, 42, 0.10);

}


/* =====================================================
   RESET
   ===================================================== */

* {

    box-sizing: border-box;

    margin: 0;

    padding: 0;

}


html {

    min-height: 100%;

}


body {

    min-height: 100vh;

    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background:
        linear-gradient(
            135deg,
            #f8fafc 0%,
            #f1f5f9 100%
        );

    color: var(--text);

}


button,
input {

    font: inherit;

}


button {

    cursor: pointer;

}


a {

    color: inherit;

    text-decoration: none;

}


/* =====================================================
   PAGE
   ===================================================== */

.login-page {

    min-height: 100vh;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(460px, 560px);

}


/* =====================================================
   LEFT BRAND PANEL
   ===================================================== */

.login-brand-panel {

    position: relative;

    min-height: 100vh;

    padding: 55px 7vw 35px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #0f766e 0%,
            #115e59 48%,
            #134e4a 100%
        );

    color: #ffffff;

}


/* =====================================================
   BACKGROUND EFFECT
   ===================================================== */

.login-brand-panel::before {

    content: "";

    position: absolute;

    width: 430px;

    height: 430px;

    border-radius: 50%;

    top: -170px;

    right: -130px;

    background:
        rgba(255, 255, 255, 0.055);

}


.login-brand-panel::after {

    content: "";

    position: absolute;

    width: 500px;

    height: 500px;

    border-radius: 50%;

    bottom: -280px;

    left: -220px;

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

}


/* =====================================================
   BRAND CONTENT
   ===================================================== */

.brand-content {

    position: relative;

    z-index: 2;

    max-width: 590px;

    margin: auto 0;

}


/* =====================================================
   BRAND LOGO
   ===================================================== */

.brand-logo-wrap {

    width: 108px;

    height: 108px;

    margin-bottom: 24px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 24px;

    background:
        rgba(255, 255, 255, 0.10);

    border:
        1px solid
        rgba(255, 255, 255, 0.15);

    box-shadow:
        0 15px 40px
        rgba(0, 0, 0, 0.12);

    backdrop-filter: blur(8px);

}


.brand-logo {

    width: 82px;

    height: 82px;

    object-fit: contain;

    display: block;

}


/* =====================================================
   BRAND NAME
   ===================================================== */

.brand-name {

    display: flex;

    flex-direction: column;

    line-height: 1;

}


.brand-name strong {

    font-size: clamp(
        38px,
        4vw,
        58px
    );

    font-weight: 800;

    letter-spacing: -2.2px;

}


.brand-name span {

    margin-top: 9px;

    font-size: 17px;

    font-weight: 700;

    letter-spacing: 3px;

    text-transform: uppercase;

    opacity: 0.82;

}


/* =====================================================
   BRAND DESCRIPTION
   ===================================================== */

.brand-description {

    max-width: 510px;

    margin-top: 26px;

    font-size: 16px;

    line-height: 1.75;

    color:
        rgba(255, 255, 255, 0.76);

}


/* =====================================================
   FEATURES
   ===================================================== */

.brand-features {

    margin-top: 36px;

    display: flex;

    flex-direction: column;

    gap: 15px;

}


.brand-feature {

    display: flex;

    align-items: center;

    gap: 12px;

    font-size: 13px;

    font-weight: 600;

    color:
        rgba(255, 255, 255, 0.88);

}


.feature-icon {

    width: 25px;

    height: 25px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.13);

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    font-size: 12px;

    font-weight: 800;

}


/* =====================================================
   BRAND FOOTER
   ===================================================== */

.brand-footer {

    position: relative;

    z-index: 2;

    font-size: 11px;

    color:
        rgba(255, 255, 255, 0.48);

}


/* =====================================================
   RIGHT FORM PANEL
   ===================================================== */

.login-form-panel {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 40px 55px;

    background:
        rgba(255, 255, 255, 0.92);

}


/* =====================================================
   LOGIN CONTAINER
   ===================================================== */

.login-container {

    width: 100%;

    max-width: 410px;

}


/* =====================================================
   MOBILE BRAND
   ===================================================== */

.mobile-brand {

    display: none;

}


/* =====================================================
   LOGIN HEADER
   ===================================================== */

.login-header {

    margin-bottom: 30px;

}


.login-eyebrow {

    display: inline-block;

    margin-bottom: 10px;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.5px;

    color: var(--primary);

}


.login-header h1 {

    font-size: 31px;

    line-height: 1.2;

    font-weight: 800;

    letter-spacing: -0.8px;

    color: var(--text);

}


.login-header p {

    margin-top: 9px;

    font-size: 13px;

    line-height: 1.6;

    color: var(--text-soft);

}


/* =====================================================
   FORM
   ===================================================== */

.login-form {

    width: 100%;

}


.form-group {

    margin-bottom: 20px;

}


.form-group label {

    display: block;

    margin-bottom: 8px;

    font-size: 12px;

    font-weight: 700;

    color: var(--text);

}


/* =====================================================
   PASSWORD LABEL ROW
   ===================================================== */

.password-label-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

}


.password-label-row label {

    margin-bottom: 8px;

}


.password-label-row a {

    margin-bottom: 8px;

    font-size: 10px;

    font-weight: 700;

    color: var(--primary);

}


.password-label-row a:hover {

    color: var(--primary-dark);

    text-decoration: underline;

}


/* =====================================================
   INPUT
   ===================================================== */

.form-group input[type="email"],
.form-group input[type="password"] {

    width: 100%;

    height: 48px;

    padding: 0 14px;

    border:
        1px solid
        var(--border);

    border-radius: var(--radius-sm);

    outline: none;

    background: #ffffff;

    color: var(--text);

    font-size: 13px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;

}


.form-group input::placeholder {

    color: #a8b2c1;

}


.form-group input:focus {

    border-color: var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(15, 118, 110, 0.10);

}


/* =====================================================
   PASSWORD INPUT
   ===================================================== */

.password-input-wrap {

    position: relative;

}


.password-input-wrap input {

    padding-right: 65px !important;

}


.toggle-password {

    position: absolute;

    top: 50%;

    right: 8px;

    transform: translateY(-50%);

    height: 34px;

    padding: 0 9px;

    border: 0;

    border-radius: 6px;

    background: transparent;

    color: var(--primary);

    font-size: 10px;

    font-weight: 800;

}


.toggle-password:hover {

    background:
        var(--primary-light);

}


/* =====================================================
   FIELD ERROR
   ===================================================== */

.field-error {

    display: block;

    min-height: 15px;

    margin-top: 5px;

    font-size: 10px;

    line-height: 1.4;

    color: var(--danger);

}


/* =====================================================
   INPUT ERROR
   ===================================================== */

.form-group.input-error
input {

    border-color:
        var(--danger);

}


.form-group.input-error
input:focus {

    box-shadow:
        0 0 0 3px
        rgba(220, 38, 38, 0.08);

}


/* =====================================================
   LOGIN OPTIONS
   ===================================================== */

.login-options {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 2px;

    margin-bottom: 18px;

}


.remember-me {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    cursor: pointer;

    font-size: 11px;

    color: var(--text-soft);

}


.remember-me input {

    width: 15px;

    height: 15px;

    margin: 0;

    accent-color: var(--primary);

    cursor: pointer;

}


/* =====================================================
   MESSAGE
   ===================================================== */

.login-message {

    display: none;

    margin-bottom: 16px;

    padding: 11px 13px;

    border-radius: var(--radius-sm);

    font-size: 11px;

    line-height: 1.5;

}


.login-message.show {

    display: block;

}


.login-message.error {

    color: var(--danger);

    background:
        var(--danger-light);

    border:
        1px solid
        #fecaca;

}


.login-message.success {

    color: var(--success);

    background:
        var(--success-light);

    border:
        1px solid
        #bbf7d0;

}


/* =====================================================
   LOGIN BUTTON
   ===================================================== */

.login-btn {

    position: relative;

    width: 100%;

    height: 49px;

    border: 0;

    border-radius: var(--radius-sm);

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color: #ffffff;

    font-size: 13px;

    font-weight: 800;

    box-shadow:
        0 8px 18px
        rgba(15, 118, 110, 0.18);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;

}


.login-btn:hover {

    transform: translateY(-1px);

    box-shadow:
        0 11px 24px
        rgba(15, 118, 110, 0.24);

}


.login-btn:active {

    transform: translateY(0);

}


.login-btn:disabled {

    cursor: not-allowed;

    opacity: 0.72;

    transform: none;

}


/* =====================================================
   LOGIN SPINNER
   ===================================================== */

.login-spinner {

    display: none;

    width: 16px;

    height: 16px;

    margin-left: 8px;

    vertical-align: middle;

    border:
        2px solid
        rgba(255,255,255,0.35);

    border-top-color:
        #ffffff;

    border-radius: 50%;

    animation:
        loginSpin 0.7s linear infinite;

}


.login-btn.loading
.login-spinner {

    display: inline-block;

}


.login-btn.loading
#loginBtnText {

    opacity: 0.9;

}


@keyframes loginSpin {

    to {

        transform: rotate(360deg);

    }

}


/* =====================================================
   REGISTER LINK
   ===================================================== */

.register-link {

    margin-top: 26px;

    padding-top: 22px;

    border-top:
        1px solid
        var(--border);

    text-align: center;

    font-size: 11px;

    color: var(--text-muted);

}


.register-link a {

    margin-left: 4px;

    color: var(--primary);

    font-weight: 800;

}


.register-link a:hover {

    color: var(--primary-dark);

    text-decoration: underline;

}


/* =====================================================
   SECURITY NOTE
   ===================================================== */

.security-note {

    margin-top: 22px;

    padding: 12px 13px;

    display: flex;

    align-items: flex-start;

    gap: 9px;

    border:
        1px solid
        #e2e8f0;

    border-radius: var(--radius-sm);

    background:
        #f8fafc;

    color: var(--text-muted);

    font-size: 9px;

    line-height: 1.5;

}


.security-icon {

    flex-shrink: 0;

    font-size: 12px;

}


/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 1000px) {

    .login-page {

        grid-template-columns:
            1fr;

    }


    .login-brand-panel {

        display: none;

    }


    .login-form-panel {

        min-height: 100vh;

        padding: 35px 25px;

    }


    .mobile-brand {

        display: flex;

        align-items: center;

        justify-content: center;

        gap: 11px;

        margin-bottom: 42px;

    }


    .mobile-brand img {

        width: 48px;

        height: 48px;

        object-fit: contain;

    }


    .mobile-brand div {

        display: flex;

        flex-direction: column;

        line-height: 1;

    }


    .mobile-brand strong {

        font-size: 20px;

        font-weight: 800;

    }


    .mobile-brand span {

        margin-top: 5px;

        font-size: 9px;

        font-weight: 700;

        letter-spacing: 1.5px;

        text-transform: uppercase;

        color: var(--primary);

    }

}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 520px) {

    .login-form-panel {

        padding:
            28px 18px;

    }


    .login-container {

        max-width: 100%;

    }


    .mobile-brand {

        margin-bottom: 34px;

    }


    .login-header {

        margin-bottom: 26px;

    }


    .login-header h1 {

        font-size: 27px;

    }


    .login-header p {

        font-size: 12px;

    }


    .form-group {

        margin-bottom: 17px;

    }


    .login-btn {

        height: 48px;

    }


    .register-link {

        line-height: 1.7;

    }


    .register-link a {

        display: block;

        margin: 2px 0 0;

    }

}


/* =====================================================
   SMALL MOBILE
   ===================================================== */

@media (max-width: 360px) {

    .login-form-panel {

        padding:
            24px 15px;

    }


    .login-header h1 {

        font-size: 24px;

    }


    .brand-description {

        font-size: 14px;

    }

}
/* =================================================
   HOME NAVIGATION
   ================================================= */

.home-navigation {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 34px;
}

.home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-width: 125px;
    height: 50px;
    padding: 0 20px;

    border-radius: 12px;

    background: #0f766e;
    color: #ffffff;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);

    transition:
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.home-icon {
    font-size: 15px;
    line-height: 1;
}

.home-link:hover {
    background: #0b5f59;
    color: #ffffff;

    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.30);

    transform: translateY(-1px);
}

.home-link:active {
    transform: translateY(0);
}