@import url('../../fonts/inter/inter.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- Genel Sayfa Düzeni (Layout) --- */
body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 90px 20px 60px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.84) 0%, rgba(30, 58, 138, 0.76) 50%, rgba(15, 23, 42, 0.88) 100%),
                url('/dizayn/user/images/abb_sosyal_yasam_merkezi.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
    color: #ffffff;
}

/* --- Login / Register Wrapper & Markalama --- */
.login-wrapper {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
    z-index: 10;
}

.login-brand {
    text-align: center;
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-brand-logo {
    width: 95px;
    height: auto;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
    transition: transform 0.3s ease;
}

.login-brand-logo:hover {
    transform: scale(1.04);
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.3px;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

/* --- Ana Kart / Kutu Yapıları --- */
.login-box {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 34px 30px;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.45);
    color: #1e293b;
    box-sizing: border-box;
}

.login-box-header {
    text-align: center;
    margin-bottom: 22px;
}

.login-box h2 {
    font-size: 1.55rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
    text-align: center;
}

.login-box p {
    color: #64748b;
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.45;
    text-align: center;
}

.register-box {
    width: 950px;
    max-width: 100%;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.35);
    color: #1e293b;
}

.register-box h2 {
    text-align: center;
    color: #1e293b;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
}

.register-box p {
    text-align: center;
    color: #64748b;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* --- Üst Sağ Menü (Home/Index ile Birebir) --- */
.top-menu {
    position: absolute;
    top: 24px;
    right: 36px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 20;
}

.user-pill {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    max-width: 220px;
}

.user-pill span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-btn {
    text-decoration: none;
    padding: 9px 20px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    cursor: pointer;
}

.top-btn.login {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.top-btn.login:hover {
    background: #ffffff;
    color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.top-btn.register {
    background: linear-gradient(135deg, #e11d48, #be123c);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
}

.top-btn.register:hover {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(225, 29, 72, 0.45);
}

/* Eski class'lar ile geriye dönük uyumluluk */
.login {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 9px 20px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.login:hover {
    background: #ffffff;
    color: #1e293b;
}

.register {
    background: linear-gradient(135deg, #e11d48, #be123c);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 9px 20px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.register:hover {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
}

/* --- Footer --- */
.landing-footer {
    position: absolute;
    bottom: 18px;
    left: 20px;
    right: 20px;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.2px;
}

.links-container {
    clear: both;
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

/* --- Üyelik Seçim Alanı --- */
.membership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.membership-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

    .membership-item:hover {
        border-color: #2563eb;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
    }

.membership-content {
    flex: 1;
}

.membership-title {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
    color: #1e293b;
}

.membership-desc {
    color: #64748b;
    line-height: 1.4;
    font-size: 0.875rem;
    font-weight: 400;
}

.membership-price {
    margin-top: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.arrow {
    font-size: 20px;
    color: #2563eb;
    margin-left: 12px;
    transition: transform 0.2s;
}

.membership-item:hover .arrow {
    transform: translateX(3px);
}

/* --- Başarılı Bildirim Kutusu --- */
.success-message {
    margin-top: 20px;
    padding: 24px;
    border: 1px solid #b7e4c7;
    background: #f0fff4;
    border-left: 5px solid #22c55e;
    border-radius: 12px;
    color: #334155;
    line-height: 1.8;
    font-size: 15px;
}

    .success-message p {
        margin: 0 0 15px;
        text-align: left;
        color: #475569;
    }

        .success-message p:last-child {
            margin-bottom: 0;
        }

    .success-message strong {
        color: #166534;
    }

.success-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 25px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background: #005BBB;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: .25s;
    width: 150px;
    text-align: center;
}

    .btn-primary:hover {
        background: #004A99;
    }

/* --- Loading Overlay & Spinner --- */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s ease, visibility .3s ease;
}

    .loading-overlay.show {
        visibility: visible;
        opacity: 1;
    }

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #e5e5e5;
    border-top: 6px solid #005BBB;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 15px;
}

.loading-text {
    font-size: 18px;
    color: #005BBB;
    font-weight: 600;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* --- Responsive Medias (Ekran Uyumluluğu) --- */
@media(min-width: 1400px) {
    .register-box {
        width: 1100px;
    }
}

@media(max-width: 900px) {
    body {
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
    }

    .top-menu {
        position: static;
        margin-bottom: 20px;
        justify-content: center;
        width: 100%;
    }

    .login-box {
        width: 95%;
        padding: 30px;
    }
}

@media(max-width: 768px) {
    body {
        padding: 15px;
    }

    .register-box {
        padding: 25px;
    }

        .register-box h2 {
            font-size: 28px;
        }
}

@media(max-width: 480px) {
    body {
        padding: 15px;
        padding-top: 70px;
    }

    .top-menu {
        gap: 8px;
    }

        .top-menu a {
            padding: 8px 16px;
            font-size: 14px;
            flex: 1;
            text-align: center;
        }

    .login-box {
        padding: 20px;
    }

        .login-box h2 {
            font-size: 26px;
        }
}
