@font-face { font-family: "Inter"; font-style: normal; font-weight: bold;  src: url('../../fonts/Inter/Inter-Bold.woff2') format('woff2'); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 400;  src: url("../../fonts/Inter/Inter-Italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500;  src: url("../../fonts/Inter/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600;  src: url("../../fonts/Inter/Inter-SemiBold.woff2") format("woff2"); }
@font-face {font-family: "Noto Sans TC"; src: url('../../fonts/Noto_Sans_TC/NotoSansTC.ttf') format('truetype'); font-weight: normal; font-style: normal; }

:root {
font-family: "Inter", "Noto Sans TC";
  font-feature-settings: 'liga' 1, 'calt' 1; /* fix for Chrome */
}

/* Set root font size (1rem = ? px) */
html { font-size: 13px; }

body{min-width: 1240px; overflow: scroll;}

/* Whole Wrapper */ 
.login-wrapper {
	display: flex;
	position: relative;
	background-color: #fff;
	height: 330px;
 	margin-top: 1%; 
	margin-left: 2%;
	margin-right: 2%;
	/* 	  box-shadow: 0 1.5px 4px rgba(10,13,18,0.08);  Slightly sharper, closer shadow */
	box-shadow: 0 1.5px 4px rgba(10,13,18,0.08);  /* Slightly sharper, closer shadow */
}


/* Login Box */
.login-box-parent {
  height: 100%;
  width: 25%;
  max-width: 330px;
  position: relative;
  background-color: #f5f5f5;
  border-right: 2px solid #a02337;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;      /* Center children horizontally */
  justify-content: center;  /* Center children vertically */
  gap: 18px;
  text-align: left;
  font-size: 12px;
  color: #b42318;
  position: relative;
  padding-right: 15px;
  padding-left: 15px;
}

.login-box-child {
	position: relative;
	border-radius: 5px 0px 0px 5px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 20px;
	font-size: 24px;
	color: #000;
}

.login-title {
	position: relative;
	font-size: 24px;
	line-height: 32px;
	color: #000;
	text-align: centre;
	align-items: center;
	height: 32px;
	width: 170px;
	font-weight: bold;
	padding-bottom: 10px;
}

.login-wrapper-container {
  align-self: stretch;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-size: 1rem;
  color: #fff;
  padding-left: 5px;
}

/* Button Wrapper & Button */
.button-wrapper {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 16px; /* Add this line for spacing between buttons */
}

.login-btn {
  background: #a02337 !important;         /* Deep red background */
  color: #fff !important;                 /* White text */
  border: none;                /* No border */
  border-radius: 4px;          /* Slightly rounded corners */
  padding: 10px 28px;          /* Comfortable padding */
  font-size: 1rem;             /* Readable text size */
  font-family: inherit;        /* Inherit your site's font */
  box-sizing: border-box;      /* Consistent sizing */
  outline: none;               /* Remove outline unless focused */
  min-width: 110px;            		/* Width for consistency */
  height: auto;
  display: inline-block;       /* Button-like display */
  box-shadow: 0 2px 8px rgba(0,0,0,0.12), 0 1.5px 4px rgba(0,0,0,0.08);   /* ^ Subtle, modern shadow */
}


.login-btn-container {
  height: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}


.login-text {
  position: relative;
  line-height: 20px;
  font-weight: 500;
}

/* Help Button */

.help-btn {
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  color: #242424;
}

.help-button-container {
  height: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}


.help-text {
  position: relative;
  line-height: 20px;
  font-weight: 500;
  color: #000;
}

/* Help Dialog */
/* Help Dialog */
.dialog {
  display: none;
}

.dialog > div {
  text-align: center;
  min-height: 75px;
}

.dialog-text {
  display: none;
  line-height: 1.5em;
  font-size: 1rem;
  color: #242424;
}

/* Main Dialog Container - Notice Style */
.ui-dialog {
  position: absolute;
  padding: 0;
  width: 340px;
  max-width: 95vw;
  overflow: hidden;
  background: #fff;
  border: none;
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(10,13,18,0.08), 0 1.5px 4px rgba(10,13,18,0.10);
  color: #242424;
  z-index: 1001;
}

/* Title Bar (Banner) */
.ui-dialog .ui-dialog-titlebar {
  padding: 0.7em 1.2em;
  background: #a02337;
  color: #fff;
  border: none;
  border-radius: 0;
  font-weight: bold;
  font-size: 1.05rem;
  min-height: 16px;
  display: flex;
  align-items: center;
  position: relative;
}
.ui-dialog .ui-dialog-title {
  float: none;
  margin: 0;
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  font-family: inherit;
}

/* Close Button */
.ui-dialog .ui-dialog-titlebar-close {
  position: absolute;
  right: 1em;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background: transparent;
  border: none;
  color: #fff;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.2s;
  padding: 0;
}
.ui-dialog .ui-dialog-titlebar-close:hover,
.ui-dialog .ui-dialog-titlebar-close:focus {
  opacity: 1;
}
.ui-dialog .ui-dialog-titlebar-close span {
  display: block;
  font-size: 1.3rem;
  margin: 0;
}

/* Dialog Content */
.ui-dialog .ui-dialog-content {
  position: relative;
  border: none;
  padding: 1.2em 1.2em 1em 1.2em;
  background: #fff;
  color: #242424;
  font-size: 1rem;
  overflow: auto;
  box-sizing: border-box;
  min-height: 75px;
  font-family: inherit;
}

/* Button Pane & Buttons */
.ui-dialog .ui-dialog-buttonpane {
  text-align: right;
  border-width: 1px 0 0 0;
  background: #fafafa;
  margin: 0;
  padding: 0.7em 1.2em;
  border-radius: 0;
}
.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
  float: none;
  display: flex;
  gap: 0.5em;
}

.ui-dialog .ui-dialog-buttonpane button {
  background: #a02337;
  color: #fff;
  border: none;
  border-radius: 0;
  padding: 0.4em 1.2em;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
  margin: 0;
}
.ui-dialog .ui-dialog-buttonpane button:hover,
.ui-dialog .ui-dialog-buttonpane button:focus {
  background: #7b1622;
}

/* Overlay */
.ui-widget-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
    background: #0a0d12;
    opacity: 0.2;
  z-index: 1000;
}

/* Component containers */
.ui-widget, .ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button {
  font-size: 1rem;
}
.ui-widget-content {
  background: #fff;
  color: #242424;
}
.ui-widget-content a {
  color: #a02337;
  text-decoration: underline;
  transition: color 0.2s;
}
.ui-widget-content a:hover {
  color: #7b1622;
}
.ui-widget-header {
  background: #a02337;
  color: #fff;
  font-weight: bold;
}
.ui-widget-header a {
  color: #fff;
}

/* Remove all corner rounding */
.ui-corner-all,
.ui-corner-top,
.ui-corner-left,
.ui-corner-tl,
.ui-corner-right,
.ui-corner-tr,
.ui-corner-bottom,
.ui-corner-bl,
.ui-corner-br {
  border-radius: 0 !important;
}

.ui-dialog a,
.dialog-text a,
.ui-dialog-content a,
.ui-widget-content a {
  color: #a02337;
  text-decoration: underline;
}

.dialog-text a:hover,
.ui-dialog-content a:hover,
.ui-widget-content a:hover {
  color: #7b1622;
}

/* End */

/* Banner Area */
.banner-container {
	flex: 1;
	background: #fff; /* or #fafafa for contrast */
	height: 330px;
	display: flex;
	flex-direction: column;
	justify-content: top;
	gap: 20px;
	box-sizing: border-box;
  
}

/* Banner Image */
.banner-img-wrapper {
  position: relative;
  width: auto;
  height: 100%;
  display: flex;
  justify-content: flex-end; /* right horizontally */
  align-items: flex-end;     /* bottom vertically */
}

.banner-img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Banner Text */

.banner-text-title {
	position: relative;
	font-size: 24px;
	display: flex;
	font-family: inherit;
	color: #a02337;
	font-weight: bold;
	margin-top: 2px;
	text-align: left;
	line-height: 2; /* 0.5 line spacing */
}

.banner-text-subtitle {
	position: relative;
	font-size: 18px;
	display: flex;
	font-family: inherit;
	color: #000;
	font-weight: bold;
	margin-top: 2px;
	text-align: left;
	line-height: 2; /* 0.5 line spacing */
}

.banner-text-content{
	line-height: 1.1; /* 0.5 line spacing */
	font-size: 1rem;
}

.banner-text-content > p {
	padding-bottom: 10px;
}

#notice-list .subtitle.notice-title u {
  text-decoration: none;
}

.banner-text-overlay {
  position: absolute;
  top: 0; left: 0;
  min-width: 45%; 
  max-width: 65%;
  height: 95%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* top */
  align-items: flex-start;     /* left */
  padding: 24px;
  box-sizing: border-box;
}

/* Bottom Part */
.bottom-wrapper{
    margin-top: 2%;
    margin-bottom: 3%;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: flex-start;
	gap: 2%; /* Adjust the gap as needed for space between boxes */
	width: 100%;
}

/* Left Notice */
.notice-wrapper {
  	width: 70%;
  	position: relative;
  	box-shadow: 0px 12px 16px -4px rgba(10, 13, 18, 0.1), 0px 4px 6px -2px rgba(10, 13, 18, 0.05);
  	background-color: #fafafa;
  	height: auto;
  	min-height: 570px;
  	display: flex;
  	flex-direction: column;
  	align-items: flex-start;
  	justify-content: flex-start;
  	box-sizing: border-box;
  	gap: 32px;
  	text-align: left;
  	font-size: 1rem;
  	color: #000;
	margin-left: 2%;

}

.notice-banner {
  width: 100%;
  height: 55px;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  background: url('+@{/}' + 'img/v2/login-notice.png');
  text-align: left;
  font-size: 1rem;
  color: #fff;
}

.notice-banner-text-overlay {
  position: absolute;
  width: 100%; 
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;   /* Center vertically */
  align-items: flex-start;   /* Align to left */
  box-sizing: border-box;
  padding-left: 1.5em;
  font-size: 1.5rem;
  font-weight: bold;
}

.notice-banner-text-overlay-right {
  position: absolute;
  width: 100%; 
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;   /* Center vertically */
  align-items: flex-end;     /* Align to right */
  box-sizing: border-box;
  padding-right: 1.5em;      /* Use right padding instead of left */
  font-size: 0.7rem;
  
}

.hr-style{
	color: #D5D7DA;
}


.notice-title {
	align-self: stretch;
	position: relative;
	font-size: 1rem;
	line-height: 24px;
	color: #a02337;
	font-weight: bold;
	flex-direction: column;
	padding-bottom: 5px;
}
.notice-date {
	align-self: stretch;
	position: relative;
	line-height: 18px;
	font-size: 12px;
	font-weight: bold;
  	flex-direction: column;
  	padding-bottom: 5px;
}
.notice-content {
	align-self: stretch;
	position: relative;
	font-size: 1rem;
	line-height: 20px;
  	flex-direction: column;
  	padding-top: 5px;
}

.notice-text-wrapper {
	overflow-y: scroll;
}

.notice-text-wrapper::-webkit-scrollbar {
  width: 8px;
  background: #f5f5f5;
}
.notice-text-wrapper::-webkit-scrollbar-thumb {
  background: #a02337;
  border-radius: 8px;
}
.notice-text-wrapper::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 8px;
}
.notice-text-wrapper::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

#notice-list {
  list-style-type: none;
  padding-left: 30px;
  padding-right: 30px;
}


/* Right Hot Links*/

.hotlink-wrapper {
  	width: 25%;
  	position: relative;
  	box-shadow: 0px 12px 16px -4px rgba(10, 13, 18, 0.1), 0px 4px 6px -2px rgba(10, 13, 18, 0.05);
  	background-color: #fafafa;
  	height: auto;
  	display: flex;
  	flex-direction: column;
  	align-items: flex-start;
  	justify-content: flex-start;
  	box-sizing: border-box;
  	gap: 32px;
  	text-align: left;
  	font-size: 1rem;
  	color: #000;
  	margin-right: 2%; /* 50px hidden, 50px margin */
  	z-index: 2;
  	margin-bottom: 20px;
}

.hotlink-banner {
  width: 100%;
  height: 55px;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  text-align: left;
  font-size: 1rem;
  color: #fff;
}

.hotlink-banner-text-overlay {
  position: absolute;
  width: 50%; 
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;   /* Center vertically */
  align-items: flex-start;   /* Align to left */
  box-sizing: border-box;
  padding-left: 1.5em;
  font-size: 1.5rem;
  font-weight: bold;
}


ul#hotlink-list li {
	line-height: 1.5em;
	padding-bottom: 0.5em;
	padding-left: 1.5em;
	width: 70%;
}

.hotlink-content {
	list-style: square;
	list-style-position: outside;
	padding-left: 3em; /* Adjust as needed for bullet spacing */
	padding-bottom: 0.5em;
}

ul.hotlink-content li {
  list-style-type: square;
  display: list-item;      /* This is the default */
  padding-top: 2%;      /* Optional: space between items */
  text-decoration: none;
}

#hotlink-list a {
  color: black;
  text-decoration: none;
}
    
#hotlink-list a:hover {
  color: #A02337;
  text-decoration: underline;
}

#login-form-panel .login-error {
	background: #ffdddd;
	border: 1px solid red;
	padding: 4px;
	color: black;
}

/* Scroll bar for panel */
::-webkit-scrollbar {
    width: 8px;
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: #a02337;
    border-radius: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 8px;
}

::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}
