﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

/* Typography aligned with Admin project */
:root {
  --font-sans-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "Meiryo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-font-sans-serif: var(--font-sans-jp);
}
body {
  font-family: var(--font-sans-jp);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
  color: #0366d6;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px; /* Vertically center the text there */
}

/* Bootstrap 5 btn-close fix */
.btn-close {
  box-sizing: content-box;
  width: 1em;
  height: 1em;
  padding: 0.25em 0.25em;
  color: #000;
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
  border: 0;
  border-radius: 0.25rem;
  opacity: 0.5;
}

.btn-close:hover {
  color: #000;
  text-decoration: none;
  opacity: 0.75;
}

.btn-close:focus {
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  opacity: 1;
}

.btn-close.disabled,
.btn-close:disabled {
  pointer-events: none;
  user-select: none;
  opacity: 0.25;
}

.btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Admin-style alignment for AuthServer: login look-and-feel */
body.login-layout {
  background: linear-gradient(135deg, rgba(127,143,255,.16), rgba(122,208,245,.16)) fixed, #f4f7fb;
}
.login-layout .card {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(17,24,39,.08);
}
.login-layout .btn-primary {
  background: linear-gradient(90deg, #6F7BF7, #7AD0F5);
  border: none;
  border-radius: 999px;
  color: #ffffff;
}
/* Login page specific overrides consistent with Admin */
.login-page .card { border-radius: 15px; }
.login-page .form-control:focus { border-color:#007bff; box-shadow:0 0 0 0.2rem rgba(0,123,255,0.25); }
.login-page .btn-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border:none; }
.login-page .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3); }

.login-page .btn-primary,
.login-page .btn-secondary,
.login-page .btn-success,
.login-page .btn-info,
.login-page .btn-warning,
.login-page .btn-danger
{ border-radius:8px; font-weight:600; padding:6px 16px; transition: all 0.3s ease; }
.login-page .btn-outline-primary,
.login-page .btn-outline-secondary,
.login-page .btn-outline-success,
.login-page .btn-outline-info,
.login-page .btn-outline-warning,
.login-page .btn-outline-danger
{ border-radius:8px; font-weight:500; padding:6px 16px; transition: all 0.3s ease; }

.login-page .alert { border-radius:8px; border:none; }
.login-page .bg-light { background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important; }
@media (max-width: 768px) { .login-page .card-body { padding: 2rem !important; } }

/* Header subtle shadow like Admin */
header .navbar { backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 1px 8px rgba(17,24,39,.06); z-index: 1030; }

/* --- Admin-aligned tokens and glass styles for AuthServer login --- */
:root {
  --accent-1:#6F7BF7; --accent-2:#7AD0F5; --accent-3:#7BE495; --accent-4:#F59E9E;
  --surface:#ffffff; --background:#f4f7fb; --muted:#8a94a6;
  --radius-lg:16px; --radius-sm:10px;
  --shadow-soft:0 10px 24px rgba(17,24,39,.08);
  --shadow-hover:0 16px 30px rgba(17,24,39,.12);
}

/* Glassy card like Admin (scoped to login layout) */
.login-layout .card {
  border: 1px solid rgba(255,255,255,.35) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  backdrop-filter: blur(10px) saturate(130%);
  background: rgba(255,255,255,.58);
  color: #475569;
}
.login-layout .card:hover { box-shadow: var(--shadow-hover); transition: box-shadow .2s ease; }
.login-layout .card-header, .login-layout .card-footer {
  background: rgba(255,255,255,.72) !important;
  border-color: rgba(255,255,255,.55) !important;
}
@supports not ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
  .login-layout .card { background: rgba(255,255,255,.95) !important; }
  .login-layout .card-header, .login-layout .card-footer { background: rgba(255,255,255,.98) !important; }
}

/* Buttons closer to Admin look (scoped) */
.login-layout .btn { border-radius: 999px; font-weight: 600; }
.login-layout .btn-outline-primary { color: var(--accent-1); border-color: var(--accent-1); }
.login-layout .btn-outline-primary:hover { background-color: rgba(111,123,247,.08); border-color: var(--accent-1); }
.login-layout .btn:focus { outline: none; box-shadow: 0 0 0 .25rem rgba(111,123,247,.18); }

/* Inputs */
.login-layout .form-control, .login-layout .form-select { border-radius: var(--radius-sm); }
.login-layout .form-control:focus, .login-layout .form-select:focus { box-shadow: 0 0 0 .25rem rgba(111,123,247,.15); border-color: var(--accent-1); }

/* Subtle header shadow already present; ensure visible above blur */
header .navbar { box-shadow: 0 1px 8px rgba(17,24,39,.06); z-index: 1030; }

/* Footer subtlety */
.footer { background-color: rgba(255,255,255,0.7); }

/* --- General glassmorphism utilities for non-login pages --- */
.glass-card {
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(17,24,39,.06);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  backdrop-filter: blur(10px) saturate(130%);
  background: rgba(255,255,255,.6);
}
.login-layout .breadcrumb {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,.35);
    box-shadow: 0 6px 16px rgba(17,24,39,.06);
    border-radius: 12px;
}
@supports not ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
  .glass-card, .login-layout .breadcrumb { background: rgba(255,255,255,.95); }
}
