/* Reset + temel ayarlar */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0f0f10;
    --panel: #0b0b0b;
    --muted: #bfbfbf;
    --accent: #ffd84d;
    --danger: #ff5757;
    --success: #2ecc71;
    --radius: 55px;
    --gap: 18px;
    --container-width: 1350px;
}

html,
body {
    height: 100%
}

body {
    background-image: url("../İmages/BG.png");
    background-size: cover;
    background-color: #1c1c1e;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 75px;
}

.poppins-regular {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.poppins-semibold {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;
}

.poppins-bold {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.poppins-medium {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.navbar {
    width: 100%;
    padding: 40px 0;
    position: absolute;
    top: 0;
    z-index: 10;
}

.nav-container {
    width: 90%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    width: 64px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    margin-left: 55px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-family: "Poppins", semibold;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a.active {
    font-weight: 700;
    font-family: "Poppins", bold;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.24), 0 0 14px rgba(255, 255, 255, 0.233);
    color: #ffffff;
}

.nav-links a:hover {
    color: #ffea62;
}


/* BUTTONS */

.nav-buttons a {
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-family: "Poppins", semibold;
    text-decoration: none;
    margin-left: 10px;
}

.login-btn {
    border: 2px solid #ffd84d;
    color: #ffd84d;
}

.login-btn:hover {
    color: black;
    background-color: #ffea62;
}

.register-btn {
    border: 2px solid #ffd84d;
    background-color: #ffd84d;
    color: black;
}

.register-btn:hover {
    border: 2px solid #ffd84d;
    color: #ffd84d;
    background: none;
}

.menu-toggle {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: white;
}


/* PAGE WRAP */

.page-wrap {
    width: 90%;
    max-width: var(--container-width);
    margin: 50px auto;
}


/* CARD (iki sütun) */

.card {
    display: flex;
    gap: 0;
    background: #0b0b0d;
    border-radius: var(--radius);
    border: 2px solid #ffd84d;
    overflow: hidden;
    align-items: stretch;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
}


/* SOL GÖRSEL / VİDEO */

.card-left {
    flex: 1 1 62%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #000000;
}

.card-left img,
.card-left video,
.card-left .hero-video {
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
    object-position: center;
    display: block;
}


/* SAĞ PANEL */

.card-right {
    width: 380px;
    max-width: 45%;
    background-color: var(--bg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    border-left: 2px solid #ffd84d;
}

.hgl-logo {
    width: 300px;
    display: block;
    margin: 20px auto 20px auto;
}


/* FORM */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 53%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 16px;
}

.input-wrap input {
    font-family: "Poppins", medium;
    width: 100%;
    padding: 12px 14px 12px 42px;
    border-radius: 12px;
    border: 1px solid rgb(255, 239, 239);
    background: rgba(255, 255, 255, 0.02);
    color: #ffffff;
    outline: none;
    font-size: 15px;
    transition: box-shadow .12s, border-color .12s;
}

.input-wrap input:focus {
    border-color: rgba(252, 252, 252, 0.85);
    background: rgb(255, 255, 255);
    color: #000000;
    box-shadow: 0 6px 18px rgba(255, 216, 77, 0.06);
}


/* Fokus olduğunda */

.input-wrap.focus .input-icon svg path {
    fill: #000000;
}


/* İçinde yazı varsa */

.input-wrap.filled .input-icon svg path {
    fill: #000000;
    /* yine yeşil */
}

.dynamic-input {
    font-family: "Poppins", medium;
    background: #111;
    color: #fff;
    transition: 0.3s;
}

.dynamic-input.filled {
    font-family: "Poppins", medium;
    background: #fff;
    color: #000;
}


/* FORMA HATA DURUMLARI (kırmızı) */

.input-wrap.error input {
    border-color: var(--danger);
    color: #ff0000;
    box-shadow: 0 6px 14px rgba(255, 87, 87, 0.12);
    background: rgba(255, 255, 255, 0.116);
}

.input-wrap.error .input-icon svg path {
    fill: #ff0000 !important;
}

.dynamic-input.success {
    border-color: #00c853;
    /* yeşil */
    color: #00c853;
}

.dynamic-input.success .input-icon svg path {
    color: #00c853 !important;
}

.input-wrap.error input::placeholder {
    color: rgba(255, 87, 87, 0.8);
}


/* forgot */

.forgot-row {
    text-align: left;
    font-family: "Poppins", medium;
    margin-top: -6px;
    margin-bottom: 6px;
}

.forgot-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
}

.forgot-link:hover {
    color: var(--accent);
    text-decoration: underline;
}


/* mesaj kutusu */

.message-box {
    font-family: "Poppins", medium;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
    display: block;
}

.message-box.err {
    background: rgba(255, 87, 87, 0.06);
    color: var(--danger);
    border-color: rgba(255, 87, 87, 0.16);
    box-shadow: 0 6px 14px rgba(255, 87, 87, 0.06);
}

.message-box.ok {
    background: rgba(46, 204, 113, 0.06);
    color: var(--success);
    border-color: rgba(46, 204, 113, 0.12);
    box-shadow: 0 6px 14px rgba(46, 204, 113, 0.04);
}


/* butonlar */

.btn {
    text-align: center;
    font-family: "Poppins", sans-serif;
    width: 100%;
    border: none;
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn.primary {
    font-family: "Poppins", sans-serif;
    background: var(--accent);
    color: #000000;
    font-size: 16px;
    font-weight: 700;
}

.btn.primary:hover {
    background: #ffe375;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(255, 216, 77, 0.35);
}

.btn.primary:active {
    transform: scale(0.98);
}

.btn.outline {
    margin-top: 8px;
    background: rgba(255, 216, 77, 0.04);
    border: 1px solid rgba(255, 216, 77, 0.3);
    color: #ffd84d;
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 14px;
    box-shadow: none;
}

.btn.outline:hover {
    background: rgba(255, 216, 77, 0.12);
    border-color: #ffd84d;
    color: #ffffff;
    transform: translateY(-1px);
}

.btn.outline:active {
    transform: scale(0.98);
}


/* footer */

.site-footer {
    margin-top: 64px;
    background-color: #000000;
    padding: 10px 15px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: var(body);
    margin-left: auto;
    margin-right: auto;
    gap: 300px;
}

.footer-left {
    font-family: "Poppins", semibold;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
}

.footer-logo {
    width: 80px;
    opacity: 0.9;
}

.footer-right {
    font-family: "Poppins", medium;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.social-links a {
    font-family: "Poppins", medium;
    color: var(--muted);
    margin-left: 10px;
    text-decoration: none;
    font-size: 13px;
}


/* responsive */

@media (max-width:1024px) {
    .card-right {
        width: 360px;
        max-width: 38%;
    }
    .nav-links {
        gap: 15px;
    }
}

@media (max-width:1350px) {
    .card {
        flex-direction: column;
    }
    .card-left {
        order: 2;
    }
    .card-right {
        order: 1;
        width: 100%;
        max-width: 100%;
    }
    .page-wrap {
        padding-top: 10px;
    }
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px;
    }
    .menu-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.5);
        width: 50%;
        padding: 20px 0;
        margin-left: 10px;
        text-align: center;
        margin-top: 5px;
    }
    .logo img {
        width: 40px;
    }
    .login-btn,
    .register-btn {
        padding: 6px 12px;
        font-size: 10px;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-buttons {
        display: flex;
    }
}

@media (max-width:420px) {
    .hgl-logo {
        width: 140px;
    }
    .card-right {
        padding: 18px;
        border-radius: 14px;
    }
    .input-wrap input {
        padding: 11px 12px 11px 42px;
        font-size: 14px;
    }
    .btn {
        padding: 11px;
        font-size: 14px;
    }
}

.sr-only {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}