/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;

    background: #0a0a0a;
    color: #ffffff;

    font-family: Arial, Helvetica, sans-serif;

    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}


/* =========================================
   LOGIN NAVBAR
========================================= */

.login-navbar {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 90px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 5%;

    background: rgba(10, 10, 10, 0.72);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    z-index: 1000;

    animation:
        navbarEnter 0.9s
        cubic-bezier(0.16, 1, 0.3, 1)
        forwards;
}

@keyframes navbarEnter {

    from {
        opacity: 0;
        transform: translateY(-100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================
   NAVBAR LOGO
========================================= */

.login-nav-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    width: 280px;
    height: 90px;

    flex-shrink: 0;

    position: relative;
    z-index: 9999;

    overflow: visible;
}

.login-nav-logo img {
    display: block;

    width: 180px;
    height: auto;

    max-height: 75px;

    object-fit: contain;

    opacity: 1;
    visibility: visible;

    position: relative;
    z-index: 9999;
}


/* =========================================
   NAVIGATION MENU
========================================= */

.login-nav-menu {
    display: flex;
    align-items: center;

    gap: 32px;

    margin-left: auto;
    margin-right: 45px;
}

.login-nav-menu a {
    position: relative;

    color: rgba(255, 255, 255, 0.68);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.2px;

    transition: color 0.3s ease;
}

.login-nav-menu a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 100%;
    height: 1px;

    background: #ffffff;

    transform: scaleX(0);
    transform-origin: right;

    transition: transform 0.35s ease;
}

.login-nav-menu a:hover {
    color: #ffffff;
}

.login-nav-menu a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}


/* =========================================
   NAVBAR ACTIONS
========================================= */

.login-nav-actions {
    display: flex;
    align-items: center;

    gap: 22px;
}


/* =========================================
   MEMBER LOGIN
========================================= */

.login-nav-member {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: #ffffff;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.2px;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.login-nav-member:hover {
    opacity: 0.65;
    transform: translateY(-1px);
}

.login-nav-member.active {
    color: #ffffff;
}


/* MEMBER ICON */

.nav-member-icon {
    position: relative;

    width: 15px;
    height: 15px;

    border: 1px solid rgba(255, 255, 255, 0.7);

    border-radius: 50%;
}

.nav-member-icon::before {
    content: "";

    position: absolute;

    top: 3px;
    left: 50%;

    width: 4px;
    height: 4px;

    border: 1px solid #ffffff;

    border-radius: 50%;

    transform: translateX(-50%);
}

.nav-member-icon::after {
    content: "";

    position: absolute;

    left: 3px;
    bottom: 2px;

    width: 7px;
    height: 3px;

    border: 1px solid #ffffff;

    border-radius: 7px 7px 0 0;
}


/* =========================================
   ONLINE STORE BUTTON
========================================= */

.login-nav-store {
    position: relative;

    display: inline-flex;
    align-items: center;

    gap: 8px;

    padding: 10px 16px;

    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.4);

    overflow: hidden;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.2px;

    transition:
        color 0.35s ease,
        transform 0.35s ease;
}

.login-nav-store::before {
    content: "";

    position: absolute;
    inset: 0;

    background: #ffffff;

    transform: translateX(-101%);

    transition:
        transform 0.4s
        cubic-bezier(0.16, 1, 0.3, 1);
}

.login-nav-store:hover::before {
    transform: translateX(0);
}

.login-nav-store:hover {
    color: #111111;
    transform: translateY(-2px);
}

.login-nav-store > * {
    position: relative;
    z-index: 2;
}


/* ONLINE DOT */

.nav-online-dot {
    width: 6px;
    height: 6px;

    background: #ffffff;

    border-radius: 50%;

    animation: onlinePulse 1.8s infinite;
}

.login-nav-store:hover .nav-online-dot {
    background: #111111;
}

@keyframes onlinePulse {

    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.55;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }

}


/* STORE ARROW */

.nav-store-arrow {
    font-size: 14px;

    transition: transform 0.3s ease;
}

.login-nav-store:hover .nav-store-arrow {
    transform: translate(3px, -3px);
}


/* =========================================
   MAIN LOGIN PAGE
========================================= */

.login-page {
    display: grid;

    grid-template-columns:
        minmax(0, 52%)
        minmax(0, 48%);

    width: 100%;
    min-height: 100vh;

    padding-top: 90px;

    background: #0a0a0a;
}


/* =========================================
   LEFT CONTENT
========================================= */

.login-content {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: calc(100vh - 90px);

    padding: 45px 12%;

    border-right: 1px solid rgba(255, 255, 255, 0.06);

    animation:
        contentReveal 1s
        0.2s
        cubic-bezier(0.16, 1, 0.3, 1)
        both;
}


/* =========================================
   BACK BUTTON
========================================= */

.back-home {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    width: fit-content;

    color: #777777;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.5px;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.back-home:hover {
    color: #ffffff;
    transform: translateX(-4px);
}

.back-arrow {
    font-size: 16px;

    transition: transform 0.3s ease;
}

.back-home:hover .back-arrow {
    transform: translateX(-4px);
}


/* =========================================
   FORM WRAPPER
========================================= */

.login-form-wrapper {
    width: 100%;
    max-width: 460px;

    margin: auto 0;

    padding: 70px 0;

    animation:
        formReveal 1s
        0.35s
        cubic-bezier(0.16, 1, 0.3, 1)
        both;
}

@keyframes contentReveal {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}

@keyframes formReveal {

    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================
   LOGIN LABEL
========================================= */

.login-label {
    display: block;

    margin-bottom: 24px;

    color: #777777;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 2px;
}


/* =========================================
   LOGIN TITLE
========================================= */

.login-form-wrapper h1 {
    font-size: clamp(56px, 6vw, 92px);

    line-height: 0.88;

    letter-spacing: -5px;

    font-weight: 900;

    margin-bottom: 30px;
}


/* =========================================
   DESCRIPTION
========================================= */

.login-description {
    max-width: 390px;

    color: #888888;

    font-size: 15px;

    line-height: 1.8;

    margin-bottom: 48px;
}


/* =========================================
   FORM
========================================= */

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 26px;
}


/* FORM LABEL */

.form-group label {
    display: block;

    margin-bottom: 12px;

    color: #a0a0a0;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.5px;
}


/* INPUT */

.form-group input {
    width: 100%;
    height: 58px;

    padding: 0 18px;

    background: rgba(255, 255, 255, 0.02);

    border: 1px solid #343434;

    outline: none;

    color: #ffffff;

    font-size: 14px;

    transition:
        border-color 0.3s ease,
        background 0.3s ease,
        transform 0.3s ease;
}

.form-group input::placeholder {
    color: #555555;
}

.form-group input:hover {
    border-color: #555555;
}

.form-group input:focus {
    border-color: #ffffff;

    background: rgba(255, 255, 255, 0.04);

    transform: translateY(-1px);
}


/* =========================================
   PASSWORD
========================================= */

.password-label {
    display: flex;

    align-items: center;
    justify-content: space-between;
}

.password-label label {
    margin-bottom: 12px;
}

.forgot-password {
    color: #777777;

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 1px;

    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #ffffff;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 85px;
}

.password-field button {
    position: absolute;

    top: 50%;
    right: 18px;

    transform: translateY(-50%);

    background: transparent;

    border: none;

    color: #888888;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1px;

    cursor: pointer;

    transition: color 0.3s ease;
}

.password-field button:hover {
    color: #ffffff;
}


/* =========================================
   REMEMBER ME
========================================= */

.login-options {
    display: flex;
    align-items: center;

    margin: 4px 0 28px;
}

.remember-me {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    cursor: pointer;

    color: #777777;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1px;

    user-select: none;
}

.remember-me input {
    display: none;
}

.custom-check {
    position: relative;

    width: 15px;
    height: 15px;

    display: inline-block;

    border: 1px solid #555555;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.remember-me input:checked + .custom-check {
    background: #ffffff;
    border-color: #ffffff;
}

.remember-me input:checked + .custom-check::after {
    content: "";

    position: absolute;

    top: 3px;
    left: 4px;

    width: 4px;
    height: 7px;

    border-right: 1px solid #111111;
    border-bottom: 1px solid #111111;

    transform: rotate(45deg);
}


/* =========================================
   LOGIN BUTTON
========================================= */

.login-button {
    position: relative;

    width: 100%;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 22px;

    background: #ffffff;

    border: none;

    color: #111111;

    cursor: pointer;

    overflow: hidden;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.5px;

    transition:
        color 0.35s ease,
        transform 0.35s ease;
}

.login-button::before {
    content: "";

    position: absolute;
    inset: 0;

    background: #d6ad32;

    transform: translateX(-101%);

    transition:
        transform 0.4s
        cubic-bezier(0.16, 1, 0.3, 1);
}

.login-button:hover::before {
    transform: translateX(0);
}

.login-button:hover {
    transform: translateY(-3px);
}

.login-button span {
    position: relative;
    z-index: 2;
}

.button-arrow {
    font-size: 18px;

    transition: transform 0.3s ease;
}

.login-button:hover .button-arrow {
    transform: translate(3px, -3px);
}

.login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}


/* RIPPLE (JS ile eklenir) */

.ripple-el {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    opacity: 0.6;
    pointer-events: none;
    z-index: 3;
    animation: rippleGrow 0.7s ease-out forwards;
}

@keyframes rippleGrow {
    to { transform: scale(1); opacity: 0; }
}


/* =========================================
   DIVIDER
========================================= */

.login-divider {
    display: flex;
    align-items: center;

    gap: 15px;

    margin: 34px 0 20px;
}

.login-divider span {
    flex: 1;

    height: 1px;

    background: #2a2a2a;
}

.login-divider p {
    color: #666666;

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 1.5px;

    white-space: nowrap;
}


/* =========================================
   REGISTER LINK
========================================= */

.register-link {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    padding: 18px 0;

    border-bottom: 1px solid #303030;

    color: #ffffff;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.2px;

    transition:
        color 0.3s ease,
        padding 0.3s ease;
}

.register-link:hover {
    color: #d6ad32;

    padding-left: 8px;
}

.register-arrow {
    font-size: 18px;

    transition: transform 0.3s ease;
}

.register-link:hover .register-arrow {
    transform: translateX(5px);
}


/* =========================================
   LOGIN FOOTER
========================================= */

.login-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #555555;

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 1px;
}

.login-footer-links {
    display: flex;
    align-items: center;

    gap: 20px;
}

.login-footer a {
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: #ffffff;
}


/* =========================================
   RIGHT VISUAL
========================================= */

.login-visual {
    position: relative;

    min-height: calc(100vh - 90px);

    overflow: hidden;

    background: #171717;

    animation:
        visualReveal 1.2s
        0.15s
        cubic-bezier(0.16, 1, 0.3, 1)
        both;
}

@keyframes visualReveal {

    from {
        clip-path: inset(0 100% 0 0);
    }

    to {
        clip-path: inset(0 0 0 0);
    }

}


/* =========================================
   BACKGROUND IMAGE
========================================= */

.login-background {
    position: absolute;

    inset: 0;

    background-image:
        linear-gradient(180deg, rgba(10,10,10,0.15) 0%, rgba(10,10,10,0.85) 100%),
        url("/frontend/assets/login/member-visual.png");

    background-size: cover;
    background-position: center;

    transform: scale(1.04);

    transition: transform 8s ease;
}

.login-visual:hover .login-background {
    transform: scale(1.09);
}


/* =========================================
   VISUAL OVERLAY
========================================= */

.visual-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(10, 10, 10, 0.9) 0%,
            rgba(10, 10, 10, 0.35) 48%,
            rgba(0, 0, 0, 0.5) 100%
        );

    z-index: 1;
}


/* =========================================
   TOP LABEL
========================================= */

.visual-top-label {
    position: absolute;

    top: 42px;
    left: 8%;

    display: flex;
    align-items: center;

    gap: 12px;

    color: rgba(255, 255, 255, 0.55);

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 1.8px;

    z-index: 3;
}

.visual-line {
    width: 35px;
    height: 1px;

    background: rgba(255, 255, 255, 0.4);
}


/* =========================================
   VISUAL CONTENT
========================================= */

.visual-content {
    position: absolute;

    left: 10%;
    right: 10%;

    bottom: 14%;

    z-index: 3;

    animation:
        visualTextReveal 1s
        0.7s
        cubic-bezier(0.16, 1, 0.3, 1)
        both;
}

@keyframes visualTextReveal {

    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.visual-eyebrow {
    display: block;

    margin-bottom: 20px;

    color: #d6ad32;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 2px;
}

.visual-content h2 {
    font-size: clamp(42px, 4.5vw, 78px);

    line-height: 0.9;

    letter-spacing: -3px;

    font-weight: 900;

    margin-bottom: 25px;
}

.visual-divider {
    width: 55px;
    height: 1px;

    margin-bottom: 22px;

    background: #d6ad32;
}

.visual-content p {
    max-width: 370px;

    color: #b0b0b0;

    font-size: 14px;

    line-height: 1.8;
}


/* =========================================
   VISUAL NUMBER
========================================= */

.visual-number {
    position: absolute;

    top: 40px;
    right: 45px;

    color: rgba(255, 255, 255, 0.25);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 2px;

    z-index: 3;
}


/* =========================================
   BOTTOM VISUAL TEXT
========================================= */

.visual-bottom {
    position: absolute;

    right: 10%;
    bottom: 42px;

    display: flex;

    gap: 20px;

    color: rgba(255, 255, 255, 0.5);

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 1.4px;

    z-index: 3;
}

.visual-bottom span {
    position: relative;
}

.visual-bottom span:not(:last-child)::after {
    content: "•";

    position: absolute;

    right: -12px;

    color: #d6ad32;
}


/* =========================================
   YÖNETİCİ GİRİŞİ
========================================= */

.admin-login-area {
    display: flex;
    align-items: center;
    gap: 14px;

    margin: 22px 0;
}

.admin-login-line {
    flex: 1;
    height: 1px;

    background: rgba(255, 255, 255, 0.08);
}

.admin-login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    color: rgba(255, 255, 255, 0.55);

    text-decoration: none;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 1.5px;

    white-space: nowrap;

    transition: 0.25s ease;
}

.admin-login-icon {
    font-size: 13px;
    color: #cda83d;

    transition: 0.25s ease;
}

.admin-login-arrow {
    font-size: 13px;

    transition: 0.25s ease;
}

.admin-login-link:hover {
    color: #ffffff;
}

.admin-login-link:hover .admin-login-icon {
    transform: rotate(45deg);
}

.admin-login-link:hover .admin-login-arrow {
    color: #cda83d;

    transform: translate(3px, -3px);
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {

    .login-navbar {
        padding: 0 4%;
    }

    .login-nav-menu {
        gap: 20px;
        margin-right: 25px;
    }

    .login-nav-menu a {
        font-size: 9px;
    }

    .login-content {
        padding: 40px 9%;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 900px) {

    .login-navbar {
        height: 76px;
    }

    .login-nav-logo {
        width: 180px;
        height: 76px;
    }

    .login-nav-logo img {
        width: 125px;
    }

    .login-nav-menu {
        display: none;
    }

    .login-nav-actions {
        margin-left: auto;
    }

    .login-nav-member {
        display: none;
    }

    .login-page {
        grid-template-columns: 1fr;

        padding-top: 76px;
    }

    .login-content {
        min-height: calc(100vh - 76px);

        padding: 35px 8%;
    }

    .login-visual {
        display: none;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 560px) {

    .login-navbar {
        padding: 0 20px;
    }

    .login-nav-logo {
        width: 140px;
    }

    .login-nav-logo img {
        width: 110px;
    }

    .login-nav-store {
        padding: 9px 11px;

        font-size: 8px;

        letter-spacing: 0.8px;
    }

    .nav-store-arrow {
        font-size: 12px;
    }

    .login-content {
        padding: 28px 24px;
    }

    .back-home {
        font-size: 8px;
    }

    .login-form-wrapper {
        padding: 55px 0;
    }

    .login-form-wrapper h1 {
        font-size: 56px;

        letter-spacing: -3px;
    }

    .login-description {
        font-size: 13px;

        line-height: 1.7;
    }

    .form-group input {
        height: 54px;
    }

    .login-button {
        height: 56px;
    }

    .login-footer {
        flex-direction: column;

        align-items: flex-start;

        gap: 15px;
    }

}


/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}