/* 
 * Login Page Styles
 * 参考: lisachannosukinatokoro.com のログイン画面を忠実に再現
 */

/* ==========================================
   Page Layout
   ========================================== */
body.page-login,
body.page-template-page-login {
    overflow: hidden;
}

.login-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #fdf8f5;
    font-family: var(--font-serif);
}

/* ==========================================
   Background Blobs (fixed, behind everything)
   ========================================== */
.bg-stage {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-blob {
    position: absolute;
    width: 100vmax;
    height: 100vmax;
    border-radius: 50%;
    pointer-events: none;
    animation: blobFloat 10s ease-in-out infinite;
}

.bg-blob--a {
    top: -40%;
    left: -20%;
    background: radial-gradient(circle at 40% 40%, rgb(255, 214, 220) 0%, rgba(0,0,0,0) 65%);
    animation-delay: 0s;
}

.bg-blob--b {
    bottom: -40%;
    right: -20%;
    background: radial-gradient(circle at 60% 60%, rgb(234, 213, 245) 0%, rgba(0,0,0,0) 65%);
    animation-delay: -3s;
}

.bg-blob--c {
    top: 20%;
    right: -30%;
    background: radial-gradient(circle at 50% 50%, rgb(253, 232, 200) 0%, rgba(0,0,0,0) 65%);
    animation-delay: -6s;
}

.bg-blob--d {
    bottom: 10%;
    left: -30%;
    background: radial-gradient(circle at 50% 50%, rgb(213, 234, 255) 0%, rgba(0,0,0,0) 65%);
    animation-delay: -9s;
}

.bg-blob--cursor {
    width: 60vmin;
    height: 60vmin;
    background: radial-gradient(circle, rgba(201, 123, 138, 0.18) 0%, rgba(0,0,0,0) 65%);
    transition: transform 0.15s ease-out;
    pointer-events: none;
    transform: translate(-50%, -50%);
    top: 0;
    left: 0;
}

@keyframes blobFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    33%       { transform: translateY(-18px) scale(1.04); }
    66%       { transform: translateY(10px) scale(0.97); }
}

/* ==========================================
   Site Header (ロゴ)
   ========================================== */
.site-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.site-header {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 28px 0 0;
    margin-bottom: 32px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: rgb(122, 96, 96);
    font-family: var(--font-serif);
    font-size: 13px;
    letter-spacing: 0.08em;
    transition: opacity 0.2s;
}

.site-logo:hover {
    opacity: 0.7;
}

.site-logo__mark {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgb(201, 123, 138) 0%, rgb(155, 109, 181) 100%);
    flex-shrink: 0;
}

/* ==========================================
   Main Content
   ========================================== */
.site-main {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    padding: 0 20px 60px;
}

/* ==========================================
   Entry Form Card
   ========================================== */
.entry-form {
    position: relative;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 44px;
    padding: 56px 44px;
    width: 100%;
    max-width: 408px;
    box-shadow:
        rgba(180, 100, 130, 0.10) 0px 8px 40px 0px,
        rgba(180, 100, 130, 0.06) 0px 2px 8px 0px,
        rgba(255, 255, 255, 0.90) 0px 1px 0px 0px inset;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ==========================================
   ef-field (フローティングラベル付きフィールド)
   ========================================== */
.ef-field {
    position: relative;
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    border: 1px solid rgba(201, 123, 138, 0.22);
    margin-bottom: 16px;
    transition: border-color 0.25s, box-shadow 0.25s;
    overflow: hidden;
}

.ef-field:focus-within {
    border-color: rgba(201, 123, 138, 0.5);
    box-shadow: 0 0 0 3px rgba(201, 123, 138, 0.10);
}

/* 左アイコン */
.ef-field__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    color: rgba(180, 140, 150, 0.7);
    flex-shrink: 0;
}

.ef-field__icon svg {
    width: 16px;
    height: 16px;
}

/* 右アイコン（パスワード表示切り替え） */
.ef-field__icon--right {
    cursor: pointer;
    transition: color 0.2s;
}

.ef-field__icon--right:hover {
    color: rgb(201, 123, 138);
}

/* フィールド内側ラッパー */
.ef-field__inner {
    position: relative;
    flex: 1;
    min-width: 0;
}

/* 入力フィールド */
.ef-field__input {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-serif);
    font-size: 13px;
    color: rgb(45, 32, 32);
    padding: 22px 16px 8px;
    line-height: 1.4;
    /* placeholder を非表示（フローティングラベルで代替） */
}

.ef-field__input::placeholder {
    color: transparent;
}

/* フローティングラベル */
.ef-field__label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    font-family: var(--font-serif);
    font-size: 11px;
    color: rgb(176, 152, 152);
    pointer-events: none;
    transition: top 0.2s ease, font-size 0.2s ease, transform 0.2s ease;
    letter-spacing: 0.05em;
}

/* 入力中 or 値あり: ラベルを上に移動 */
.ef-field__input:focus ~ .ef-field__label,
.ef-field__input:not(:placeholder-shown) ~ .ef-field__label {
    top: 10px;
    transform: translateY(0);
    font-size: 9px;
    color: rgb(201, 123, 138);
}

/* フォーカスライン（下部のグラデーションライン） */
.ef-field__focus-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, rgb(201, 123, 138) 0%, rgb(155, 109, 181) 100%);
    transition: width 0.3s ease;
    border-radius: 0 0 0 0;
}

.ef-field:focus-within .ef-field__focus-line {
    width: 100%;
}

/* ==========================================
   Error Message
   ========================================== */
.login-error {
    font-size: 12px;
    color: rgb(201, 123, 138);
    text-align: center;
    margin: -8px 0 16px;
    font-family: var(--font-sans);
    letter-spacing: 0.03em;
}

/* ==========================================
   ENTRY Button
   ========================================== */
.entry-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 24px;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(201, 123, 138, 0.35);
    border-radius: 100px;
    color: rgb(201, 123, 138);
    font-family: var(--font-serif);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.38em;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.entry-btn:hover {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(201, 123, 138, 0.6);
    box-shadow: 0 4px 20px rgba(201, 123, 138, 0.2);
    transform: translateY(-1px);
}

.entry-btn:active {
    transform: scale(0.98);
}

.entry-btn__arrow {
    font-size: 14px;
    letter-spacing: 0;
    transition: transform 0.2s;
}

.entry-btn:hover .entry-btn__arrow {
    transform: translateX(3px);
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 480px) {
    .entry-form {
        padding: 40px 28px;
        border-radius: 36px;
    }
    .site-logo {
        font-size: 12px;
    }
}
