/* Laboro.AI — Keycloak Login Theme v3 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;600;700&display=swap');

/* ===== 全体 ===== */
html, body {
    height: 100%;
    margin: 0;
}
body {
    font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif !important;
    background: linear-gradient(160deg, #f0f4f8 0%, #e8eef5 40%, #f5f7fa 100%) !important;
    min-height: 100vh;
}
body::before {
    content: '';
    position: fixed;
    top: -20%;
    right: -10%;
    width: 50%;
    height: 70%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 130, 181, 0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}
body::after {
    content: '';
    position: fixed;
    bottom: -15%;
    left: -10%;
    width: 40%;
    height: 50%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 201, 83, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* ===== ヘッダー ===== */
#kc-header {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    text-align: center;
}
#kc-header::before { display: none; }
#kc-header-wrapper {
    color: #0082B5 !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
    padding: 48px 32px 8px !important;
    text-transform: none !important;
    background: none !important;
}

/* ===== カード ===== */
.card-pf {
    border: none !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 80, 122, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    max-width: 400px;
    margin: 0 auto;
    padding: 40px 36px 36px !important;
    overflow: visible;
}
/* 内部レイヤーのリセット */
.login-pf-header,
#kc-content,
#kc-content-wrapper,
#kc-form-wrapper {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* ===== タイトル（Sign in） ===== */
#kc-page-title {
    font-family: 'Inter', 'Noto Sans JP', sans-serif !important;
    font-weight: 600 !important;
    font-size: 22px !important;
    color: #1a2b3c !important;
    letter-spacing: -0.01em;
    margin: 0 0 28px 0 !important;
    text-align: center;
}

/* ===== カスタムフォーム ===== */
form {
    width: 100%;
}
.custom-field {
    margin-bottom: 20px;
}
.custom-field label {
    display: block;
    color: #4a5568;
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 6px;
}
.custom-field input {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}
.custom-field input:focus {
    border-color: #0082B5;
    box-shadow: 0 0 0 3px rgba(0, 130, 181, 0.12);
}
.custom-field input::placeholder {
    color: #a0aec0;
}

/* ===== ボタン ===== */
.custom-btn {
    width: 100%;
    margin-top: 8px;
    padding: 13px 24px;
    min-height: 48px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #0082B5 0%, #00507A 50%, #4aad3a 100%);
    background-size: 150% 100%;
    color: #fff;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 130, 181, 0.25);
    transition: all 0.2s ease;
}
.custom-btn:hover {
    background-position: 100% 0;
    box-shadow: 0 6px 20px rgba(0, 130, 181, 0.35);
    transform: translateY(-1px);
}

/* ===== Remember me ===== */
.custom-remember {
    margin-bottom: 16px;
}
.custom-remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #718096;
    font-size: 13px;
    cursor: pointer;
}
.custom-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #0082B5;
}

/* ===== エラー ===== */
.custom-error {
    background: #fff5f5;
    border-left: 4px solid #e53e3e;
    border-radius: 8px;
    color: #c53030;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
}

/* ===== Keycloak デフォルト要素の非表示・リセット ===== */
.alert { display: none !important; }
#kc-info, #kc-info-wrapper {
    font-size: 13px !important;
    color: #718096 !important;
    text-align: center;
}
a {
    color: #0082B5 !important;
    text-decoration: none !important;
}
a:hover {
    color: #00507A !important;
}

/* ===== ログアウト画面 ===== */
#kc-logout {
    text-align: center;
}
#kc-logout .btn-primary,
#kc-logout button[type="submit"] {
    background: linear-gradient(135deg, #0082B5 0%, #00507A 50%, #4aad3a 100%) !important;
    background-size: 150% 100% !important;
    border: none !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    padding: 13px 24px !important;
    min-height: 48px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 130, 181, 0.25) !important;
}
