/* GiyimCenter — Auth pages (giriş, şifremi unuttum) · gl-* */

.gl-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    width: 100%;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    position: relative;
    overflow: hidden;
    background: #fafafa;
    color: var(--gc-ink);
}

.gl-page-aurora {
    position: absolute;
    inset: -30%;
    background:
        radial-gradient(circle 520px at 18% 22%, rgba(74, 222, 128, 0.14), transparent 58%),
        radial-gradient(circle 440px at 82% 12%, rgba(99, 102, 241, 0.09), transparent 52%),
        radial-gradient(circle 380px at 50% 95%, rgba(14, 165, 233, 0.07), transparent 50%);
    animation: glAuroraDrift 18s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes glAuroraDrift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(2%, -1.5%) scale(1.04); }
}

.gl-page-noise {
    position: absolute;
    inset: 0;
    opacity: 0.028;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.gl-page-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.045) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    pointer-events: none;
}

.gl-inner {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 2;
    animation: glFadeIn 0.55s var(--gc-ease) both;
}

@keyframes glFadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.gl-btn-skip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--gc-border);
    border-radius: 100px;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s var(--gc-ease);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.gl-btn-skip:hover {
    color: var(--gc-ink);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.gl-shell { width: 100%; }

.gl-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: 28px;
    padding: 44px 38px 34px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.9) inset,
        var(--gc-shadow),
        0 4px 16px rgba(10, 10, 10, 0.04);
}

.gl-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(145deg,
        rgba(74, 222, 128, 0.45),
        rgba(99, 102, 241, 0.12) 40%,
        rgba(0, 0, 0, 0.06) 70%,
        rgba(74, 222, 128, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.gl-card-glow {
    position: absolute;
    top: -80px;
    left: 50%;
    width: 280px;
    height: 280px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(74, 222, 128, 0.12), transparent 65%);
    pointer-events: none;
}

.gl-card-head {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.gl-card-logo {
    display: inline-flex;
    position: relative;
    margin-bottom: 22px;
}

.gl-logo-ring {
    position: absolute;
    inset: -6px;
    border-radius: 20px;
    border: 1px solid rgba(74, 222, 128, 0.25);
    animation: glRingPulse 3s ease infinite;
}

@keyframes glRingPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.04); }
}

.gl-card-logo img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--gc-border);
    padding: 9px;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.gl-card-head h1 {
    font-size: clamp(28px, 5vw, 34px);
    font-weight: 900;
    color: var(--gc-ink);
    letter-spacing: -1.2px;
    margin: 0 0 8px;
    line-height: 1.05;
}

.gl-card-head p {
    font-size: 14px;
    color: var(--gc-muted);
    margin: 0;
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: -0.15px;
}

.gl-anim {
    opacity: 0;
    transform: translateY(12px);
    animation: glSlideUp 0.65s var(--gc-ease) calc(0.08s * var(--gl-i, 0)) forwards;
}

@keyframes glSlideUp {
    to { opacity: 1; transform: translateY(0); }
}

.gl-field { margin-bottom: 20px; position: relative; }

.gl-field label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.9px;
}

.gl-input-wrap { position: relative; display: flex; align-items: center; }

.gl-input-icon {
    position: absolute;
    left: 15px;
    color: #94a3b8;
    font-size: 13px;
    pointer-events: none;
    transition: color 0.25s var(--gc-ease);
    z-index: 2;
}

.gl-input-wrap input {
    width: 100%;
    background: rgba(250, 250, 250, 0.9);
    border: 1.5px solid var(--gc-border);
    border-radius: var(--gc-radius);
    padding: 14px 44px 14px 42px;
    color: var(--gc-ink);
    font-size: 15px;
    font-weight: 500;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    font-family: inherit;
    box-sizing: border-box;
    letter-spacing: -0.1px;
}

.gl-input-wrap input:focus {
    background: #fff;
    border-color: rgba(10, 10, 10, 0.85);
    box-shadow:
        0 0 0 4px rgba(10, 10, 10, 0.05),
        0 8px 24px rgba(10, 10, 10, 0.04);
}

.gl-input-wrap:focus-within .gl-input-icon { color: var(--gc-accent-dk); }
.gl-input-wrap input::placeholder { color: #cbd5e1; font-weight: 400; }

.gl-pw-toggle {
    position: absolute;
    right: 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    z-index: 2;
}

.gl-pw-toggle:hover {
    color: var(--gc-ink);
    background: rgba(0, 0, 0, 0.04);
}

.gl-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 10px;
}

.gl-check {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    color: #475569;
    font-weight: 500;
    user-select: none;
    letter-spacing: -0.1px;
}

.gl-check input { display: none; }

.gl-check-box {
    width: 18px;
    height: 18px;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    margin-right: 9px;
    position: relative;
    transition: all 0.25s var(--gc-ease);
    background: #fff;
    flex-shrink: 0;
}

.gl-check input:checked + .gl-check-box {
    background: var(--gc-ink);
    border-color: var(--gc-ink);
    box-shadow: 0 4px 12px rgba(10, 10, 10, 0.15);
}

.gl-check-box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.15s;
}

.gl-check input:checked + .gl-check-box::after { opacity: 1; }

.gl-link {
    color: var(--gc-ink);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.1px;
    position: relative;
}

.gl-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1.5px;
    background: var(--gc-accent-dk);
    transition: width 0.25s var(--gc-ease);
}

.gl-link:hover::after { width: 100%; }

.gl-submit {
    width: 100%;
    background: var(--gc-ink);
    color: #fff;
    border: none;
    border-radius: var(--gc-radius);
    padding: 15px 22px;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    position: relative;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: box-shadow 0.3s var(--gc-ease), background 0.25s;
    letter-spacing: -0.3px;
    overflow: hidden;
}

.gl-submit-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: glBtnShine 4s ease infinite;
}

@keyframes glBtnShine {
    0%, 70%, 100% { left: -100%; }
    35% { left: 120%; }
}

.gl-submit-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gc-accent);
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.75);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.gl-submit-text { position: relative; z-index: 1; transition: opacity 0.2s; }

.gl-submit-arrow {
    position: relative;
    z-index: 1;
    font-size: 12px;
    opacity: 0.7;
    transition: transform 0.25s var(--gc-ease), opacity 0.25s;
}

.gl-submit:hover {
    background: #141414;
    box-shadow: 0 12px 36px rgba(10, 10, 10, 0.22);
}

.gl-submit:hover .gl-submit-arrow {
    transform: translateX(3px);
    opacity: 1;
}

.gl-submit:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

.gl-submit-loader {
    position: absolute;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 2;
}

.gl-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: glSpin 0.7s linear infinite;
    display: block;
}

@keyframes glSpin { to { transform: rotate(360deg); } }

.gl-submit.loading .gl-submit-text,
.login-btn.loading .btn-text { opacity: 0; }
.gl-submit.loading .gl-submit-dot,
.gl-submit.loading .gl-submit-arrow { opacity: 0; }
.gl-submit.loading .gl-submit-loader,
.login-btn.loading .btn-loader { opacity: 1; }

.gl-register {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 13px;
    color: var(--gc-muted);
    letter-spacing: -0.1px;
}

.gl-register a {
    color: var(--gc-ink);
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
    border-bottom: 1.5px solid rgba(74, 222, 128, 0.5);
    transition: border-color 0.2s;
}

.gl-register a:hover { border-bottom-color: var(--gc-accent-dk); }

.gl-ssl {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--gc-accent-soft), #ecfdf5);
    border: 1px solid #bbf7d0;
    border-radius: var(--gc-radius);
}

.gl-ssl-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(74, 222, 128, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gl-ssl-icon i { color: var(--gc-accent-dk); font-size: 13px; }

.gl-ssl span {
    color: #166534;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -0.05px;
}

.gl-error {
    display: block;
    color: #dc2626;
    font-size: 12px;
    font-weight: 500;
    margin-top: 6px;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.2s;
}

.gl-error.show,
.error-message.show { opacity: 1; transform: translateY(0); }

.gl-field.error .gl-input-wrap input,
.form-group.error .gl-input-wrap input,
.form-group.error input {
    border-color: #dc2626;
    background: #fef2f2;
}

.gl-field.error .gl-input-wrap input:focus,
.form-group.error input:focus {
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

.gl-success {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.4s var(--gc-ease);
    border-radius: 28px;
    z-index: 10;
}

.gl-success.show,
.success-message.show { display: flex; opacity: 1; }

.gl-success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border: 2px solid #86efac;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    animation: glPop 0.5s var(--gc-ease) both;
    box-shadow: 0 8px 32px rgba(74, 222, 128, 0.2);
}

.gl-success-icon i { color: var(--gc-accent-dk); font-size: 24px; }

@keyframes glPop {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.gl-success h3 {
    color: var(--gc-ink);
    font-size: 22px;
    font-weight: 900;
    margin: 0 0 6px;
    letter-spacing: -0.5px;
}

.gl-success p {
    color: var(--gc-muted);
    font-size: 14px;
    margin: 0;
    letter-spacing: -0.1px;
}

@media (max-width: 480px) {
    .gl-page { padding: 20px 12px; min-height: auto; }
    .gl-page-dots { display: none; }
    .gl-card {
        border-radius: 0;
        padding: 32px 22px 28px;
        box-shadow: none;
        background: #fff;
    }
    .gl-card::before { display: none; }
    .gl-card-head h1 { font-size: 26px; }
    .gl-options { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .gl-page-aurora,
    .gl-logo-ring,
    .gl-submit-shine,
    .gl-anim,
    .gl-inner { animation: none; opacity: 1; transform: none; }
}