/**
 * マカイクラウド - ログイン・セットアップページCSS
 */

/* ========== 共通：認証ページレイアウト ========== */
body.login-page,
body.setup-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

/* ========== ログインページ ========== */
.login-container {
    width: 100%;
    max-width: 400px;
}

.login-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--accent);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

.login-logo-img {
    display: block;
    max-width: 200px;
    height: auto;
    margin: 0 auto 1.5rem;
    border: none;
    outline: none;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.login-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dim);
}

/* ========== セットアップページ ========== */
.setup-container {
    width: 100%;
    max-width: 480px;
}

.setup-header {
    text-align: center;
    margin-bottom: 2rem;
}

.setup-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
    margin-bottom: 0.5rem;
}

.setup-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.setup-desc {
    color: var(--text-dim);
    font-size: 0.875rem;
}

.setup-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

/* ========== 成功・エラーメッセージ ========== */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #fca5a5;
    font-size: 0.875rem;
}

.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--success);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.success-message h3 {
    color: var(--success);
    margin-bottom: 0.75rem;
}

.success-message p {
    color: var(--text-dim);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

/* ========== ヒントボックス ========== */
.info-box {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--accent-glow);
}

.info-box strong {
    display: block;
    margin-bottom: 0.25rem;
}

/* ========== AXiVRS ID ログイン ========== */
.axivrs-login-card {
    background: linear-gradient(135deg, rgba(76, 40, 137, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid rgba(30, 58, 138, 0.3);
    margin-bottom: 0;
}

.btn-axivrs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #4C2889, #1E3A8A, #06B6D4);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.3);
    letter-spacing: 0.03em;
}

.btn-axivrs:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(76, 40, 137, 0.4),
                0 4px 16px rgba(6, 182, 212, 0.25);
}

.btn-axivrs:active {
    transform: translateY(0);
}

.axivrs-icon {
    width: 22px;
    height: auto;
}

/* ログイン区切り線 */
.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-dim);
    font-size: 0.75rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.login-divider span {
    padding: 0 1rem;
}

/* AXiVRS ID ヒント */
.axivrs-hint {
    text-align: center;
    font-size: 0.6875rem;
    color: var(--text-dim);
    margin-top: 0.75rem;
    margin-bottom: 0;
    line-height: 1.6;
}

.axivrs-hint a {
    color: var(--text-dim);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.axivrs-hint a:hover {
    color: var(--accent);
}

/* ========== 認証タブ ========== */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-bottom: none;
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.auth-tab:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}

.auth-tab.active {
    color: var(--accent);
    background: rgba(139, 92, 246, 0.1);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
}

/* タブコンテンツ */
.auth-content {
    display: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.auth-content.active {
    display: block;
}

/* ========== メールアドレスフィードバック ========== */
.email-feedback {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    min-height: 1.25rem;
    transition: all 0.2s ease;
}

.email-feedback.checking {
    color: var(--text-dim);
}

.email-feedback.success {
    color: var(--success);
}

.email-feedback.error {
    color: var(--danger);
}

/* ========== 同意チェックボックス ========== */
.agree-group {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
}

.agree-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-dim);
    cursor: pointer;
}

.agree-label input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.agree-label a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.agree-label a:hover {
    color: var(--accent-glow);
}

/* ========== トップページへ戻るリンク ========== */
.back-to-top-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}

.back-to-top-link:hover {
    color: var(--accent);
}

.back-to-top-link i {
    margin-right: 0.375rem;
}
