/* 로그인 페이지 전용 배경 */
body.controller-account.action-login {
  background: linear-gradient(135deg, #eaf5ff 0%, #f8fbff 55%, #dceeff 100%);
  min-height: 100vh;
}

/* 로그인 페이지의 기존 레이아웃 정리 */
body.controller-account.action-login #wrapper {
  background: transparent;
}

body.controller-account.action-login #header,
body.controller-account.action-login #top-menu,
body.controller-account.action-login #footer {
  display: none;
}

body.controller-account.action-login #main {
  background: transparent;
  padding: 60px 20px;
}

body.controller-account.action-login #content {
  max-width: 440px;
  margin: 40px auto;
  padding: 72px 36px;
  background: #ffffff;
  border: 1px solid #e2edfa;
  border-radius: 24px;
  box-shadow: 0 18px 55px rgba(52, 112, 178, 0.12);
}

/* 로그인 카드 제목 */
body.controller-account.action-login #content::before {
  content: "Redmine";
  display: block;
  text-align: center;
  color: #2475c7;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

body.controller-account.action-login #content::after {
  content: "팀의 아이디어를 프로젝트로";
  display: block;
  text-align: center;
  color: #7890a9;
  font-size: 14px;
  margin-top: 24px;
}

/* Google 로그인 영역 */
body.controller-account.action-login #oauth-form {
  margin: 24px 0;
}

body.controller-account.action-login #oauth-form-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.controller-account.action-login #oauth-form-buttons button {
  width: 100%;
  min-height: 54px;
  padding: 14px 20px;
  background: #ffffff !important;
  color: #263b53 !important;
  border: 1px solid #d7e4f3 !important;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(43, 87, 135, 0.06);
  transition: background 0.2s, box-shadow 0.2s;
}

body.controller-account.action-login #oauth-form-buttons button:hover {
  background: #f0f7ff !important;
  box-shadow: 0 5px 15px rgba(43, 87, 135, 0.12);
}



/* 일반 로그인 접기 영역 */
body.controller-account.action-login #oauth-fieldset-login-form {
  margin-top: 22px;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid #e2edfa;
  width: 100%;
  background: transparent;
}

body.controller-account.action-login #oauth-fieldset-login-form legend {
  color: #47627f;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* Google 로그인 버튼 */
body.controller-account.action-login #oauth-form-buttons button {
  background: #2878d0 !important;
  color: #ffffff !important;
  border: 1px solid #2878d0 !important;
}

body.controller-account.action-login #oauth-form-buttons button:hover {
  background: #1766b9 !important;
}

/* 일반 로그인 입력창 */
body.controller-account.action-login #login-form input[type="text"],
body.controller-account.action-login #login-form input[type="password"] {
  box-sizing: border-box;
  width: 100%;
  padding: 12px;
  border: 1px solid #d6e3f2;
  border-radius: 10px;
}

/* 일반 로그인 버튼 */
body.controller-account.action-login #login-submit {
  background: #2878d0;
  color: white;
  border: 0;
  border-radius: 10px;

  height: 48px;
  padding: 0 20px;
  box-sizing: border-box;

  font-size: 16px;
  line-height: normal;
  text-align: center;
  vertical-align: middle;

  cursor: pointer;
}


/* Google 로그인을 위쪽에 배치 */
body.controller-account.action-login #content {
  display: flex;
  flex-direction: column;
}

/* Google 로그인 버튼 */
body.controller-account.action-login #oauth-form {
  order: 1;
  width: 100%;
  box-sizing: border-box;
}

/* 일반 로그인 접기 영역 */
body.controller-account.action-login #oauth-fieldset-login-form {
  order: 2;
  width: 100%;
  box-sizing: border-box;
}

/* 로그인 화면의 기타 요소 */
body.controller-account.action-login #content > *:not(
  #oauth-form,
  #oauth-fieldset-login-form
) {
  order: 0;
}
/* =========================================
   로그인 화면 간격 조정
   ========================================= */

/* 카드 바깥쪽 여백 줄이기 */
body.controller-account.action-login #main {
  padding: 24px 20px;
}

/* 카드 내부 여백 줄이기 */
body.controller-account.action-login #content {
  margin: 20px auto;
  padding: 72px 36px;
}

/* Google 로그인 버튼 주변 간격 */
body.controller-account.action-login #oauth-form {
  margin: 12px 0 8px;
}

/* 일반 로그인 영역을 Google 버튼에 가깝게 */
body.controller-account.action-login #oauth-fieldset-login-form {
  margin-top: 8px;
  padding-top: 12px;
}

/* 일반 로그인 입력창 영역 */
body.controller-account.action-login #login-form {
  margin-top: 8px;
  padding: 12px;
  box-shadow: none;
}


/* 로그인 카드 전체를 화면 중앙에 가깝게 배치 */
body.controller-account.action-login #main {
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

body.controller-account.action-login #content {
  margin: 0 auto;
  min-height: auto;
  box-sizing: border-box;
}
/* Redmine 제목 → 부제목 → Google 버튼 순서 */
body.controller-account.action-login #content::before {
  order: 0;
  margin-bottom: 0;
}

body.controller-account.action-login #content::after {
  order: 1;
  margin-top: 10px;
  margin-bottom: 24px;
}

body.controller-account.action-login #oauth-form {
  order: 2;
}

body.controller-account.action-login #oauth-fieldset-login-form {
  order: 3;
}
