/* =========================
   AUTH PAGE – CORE
========================= */

/* Ana içerik alanı */
body.page-id-8388 #primary,
body.page-id-8391 #primary,
body.page-id-8388 .site-main,
body.page-id-8391 .site-main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 30px 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: none;
}

/* Ana form kutusu */
.me-auth-form {
    max-width: 420px;
    margin: 0 auto;
    padding: 34px;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e6e6e6;
    box-shadow:
        0 10px 30px rgba(0,0,0,0.06),
        0 1px 0 rgba(0,0,0,0.04);
}

/* Header */
.me-auth-header {
    text-align: center;
    margin-bottom: 14px;
}

.me-auth-header img {
    max-width: 200px;
    height: auto;
    margin: 0 auto 8px;
    display: block;
}

.me-auth-header h2 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: #111;
}

.me-auth-header p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Inputlar */
.me-auth-form input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    border: 1px solid #dcdcdc;
    background: #f9f9f9;
    color: #111;
    font-size: 15px;
    transition: all .2s ease;
}

.me-auth-form input::placeholder {
    color: #999;
}

.me-auth-form input:focus {
    background: #ffffff;
    border-color: #b5b5b5;
    outline: none;
}

/* Field */
.me-auth-field {
    position: relative;
    display: block;
    margin-bottom: 16px;
}

.me-auth-field input {
    width: 100%;
    display: block;
    padding-left: 46px;
    box-sizing: border-box;
}

.me-auth-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
    font-size: 16px;
    opacity: .6;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Password field */
.me-auth-password {
    position: relative;
}

.me-auth-password input {
    width: 100%;
    height: 52px;
    line-height: 52px;
    padding-left: 48px;
    padding-right: 48px;
    box-sizing: border-box;
}

.me-auth-password .me-auth-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    line-height: 1;
    display: block;
    pointer-events: none;
}

.me-auth-password .me-auth-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    line-height: 1;
    display: block;
    cursor: pointer;
}

.me-auth-password span {
    white-space: nowrap;
}

/* Buton */
.me-auth-form button {
    width: 100%;
    padding: 14px;
    margin-top: 6px;
    border-radius: 14px;
    background: #b11217;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background .2s ease, transform .1s ease;
}

.me-auth-form button:hover {
    background: #9e0f14;
    transform: translateY(-1px);
}

.me-auth-form button.loading {
    pointer-events: none;
    background: #7f0d11;
}

.me-auth-form button .btn-text {
    display: inline-block;
}

.me-auth-form button .btn-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: meSpin 1s linear infinite;
    margin: 0 auto;
}

.me-auth-form button.loading .btn-text {
    display: none;
}

.me-auth-form button.loading .btn-loader {
    display: block;
}

@keyframes meSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Error / info */
.me-auth-error {
    background: #fef2f2;
    color: #991b1b;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-weight: 600;
}

.me-auth-info {
    background: #f1f5f9;
    color: #334155;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-weight: 600;
}

/* Password info */
.me-auth-password-info {
    margin: 8px 0 18px;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
}

.me-auth-password-info code {
    background: #f1f1f1;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 12px;
}

/* Links */
.me-auth-links {
    margin-top: 14px;
    text-align: center;
}

.me-auth-links a {
    font-size: 14px;
    color: #555;
    text-decoration: underline;
}

/* Sayfa başlıklarını gizle */
.page-id-8388 h1,
.page-id-8391 h1,
.page-id-8388 .entry-title,
.page-id-8391 .entry-title,
.page-id-8388 section:first-of-type > h1,
.page-id-8391 section:first-of-type > h1 {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    body.page-id-8388 #primary,
    body.page-id-8391 #primary,
    body.page-id-8388 .site-main,
    body.page-id-8391 .site-main {
        margin: 20px auto;
        padding: 20px 15px;
        border-radius: 14px;
    }

    .me-auth-form {
        padding: 24px;
        border-radius: 16px;
    }

    .me-auth-header img {
        max-width: 170px;
    }

    .me-auth-header h2 {
        font-size: 20px;
    }
}