/* =========================================
   基本的なリセットと全体設定
   ========================================= */

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #1f1f1f;
    
    /* ▼▼▼ ページ全体をFlexboxレイアウトにするための設定 ▼▼▼ */
    display: flex;
    flex-direction: column;
    min-height: 100%; /* 最小の高さを画面全体に */
    /* ▲▲▲ ここまで ▲▲▲ */

    background: #f0f2f5 url('images/background.jpg') no-repeat center center fixed;
    background-size: cover;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

button {
    -webkit-appearance: button;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* =========================================
   メインコンテンツとログインフォーム
   ========================================= */

main.login-container {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 360px;
    text-align: center;
    margin: auto; /* コンテンツを中央に配置 */
    flex-shrink: 0; /* コンテンツが縮まないように */
}

.pixiv-logo {
    width: 96px;
    margin-bottom: 16px;
}

.title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 24px;
}

.info-box {
    background-color: #f7f7f7;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.info-box-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.info-box-images img {
    height: 24px;
}

.arrow-icon {
    fill: #858585;
}

.info-box-text {
    font-size: 14px;
    line-height: 1.6;
    color: #555555;
    margin: 0;
}

.divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 24px 0;
}

form {
    display: flex;
    flex-direction: column;
}

.input-group {
    position: relative;
    margin-bottom: 16px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    border: 1px solid #dcdcdc;
    background-color: #f7f7f7;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: #858585;
}

input[type="text"]:hover,
input[type="password"]:hover {
    background-color: #efefef;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #0096fa;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
}

.toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    padding: 4px;
}

.toggle-password svg {
    fill: #858585;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 24px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    user-select: none;
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
    width: 100%;
    margin-bottom: 12px;
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
}

.btn-primary {
    background-color: #0096fa;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #0088e1;
}

.btn-primary:disabled {
    background-color: #b2e1ff;
    cursor: not-allowed;
}

.recaptcha-notice {
    font-size: 12px;
    color: #858585;
    line-height: 1.5;
}

.recaptcha-notice a {
    color: #858585;
    text-decoration: underline;
}