@charset "utf-8";

/* =========================================================================
   MAYLO Webmail Login CSS (Light Theme)
========================================================================= */

:root {
	--maylo-primary: #4C9A2C;
	/* Green */
	--maylo-primary-hover: #3E8024;

	--bg-color: #ffffff;
	--card-bg: #ffffff;
	--text-main: #1f2937;
	--text-sub: #6b7280;
	--input-bg: #f3f4f6;
	--input-border: #e5e7eb;
	--input-focus: #ffffff;

	font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

body.maylo-theme {
	margin: 0;
	padding: 0;
	height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--bg-color);
	color: var(--text-main);
	overflow-y: auto;
}

/* Header overrides if needed to match light theme */
.gnb {
	width: 100%;
	background: #fff;
	border-bottom: 1px solid #e5e7eb;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	position: fixed;
	top: 0;
	z-index: 100;
}

.gnb-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 24px;
	height: 60px;
}

/* Main Wrapper */
.loginWrap {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 80px 20px 20px;
	width: 100%;
	box-sizing: border-box;
}

.loginContainer {
	width: 100%;
	max-width: 400px;
	background: var(--card-bg);
	border-radius: 16px;
	padding: 40px;
	box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
	border: 1px solid #f3f4f6;
}

/* Header Logo (if used inside card, though we use global header now) */
.brandLogo {
	text-align: center;
	margin-bottom: 2rem;
}

.brandLogo h1 {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 8px 0;
	color: #111827;
}

.brandLogo .slogan {
	font-size: 14px;
	color: var(--text-sub);
}

/* Form Fields */
.field {
	position: relative;
	margin-bottom: 20px;
}

.field input {
	width: 100%;
	height: 56px;
	background: var(--input-bg);
	border: 1px solid var(--input-border);
	border-radius: 12px;
	padding: 0 20px 0 52px;
	font-size: 16px;
	color: var(--text-main);
	box-sizing: border-box;
	transition: all 0.2s ease;
	outline: none;
}

.field input:focus {
	background: var(--input-focus);
	border-color: var(--maylo-primary);
	box-shadow: 0 0 0 4px rgba(76, 154, 44, 0.1);
}

.field input::placeholder {
	color: #9ca3af;
}

.fieldIcon {
	position: absolute;
	top: 50%;
	left: 20px;
	transform: translateY(-50%);
	color: #9ca3af;
	transition: color 0.2s ease;
}

.fieldIcon svg {
	width: 20px;
	height: 20px;
}

.field input:focus+.fieldIcon {
	color: var(--maylo-primary);
}

/* Button */
.btnLogin {
	width: 100%;
	height: 56px;
	background: var(--maylo-primary);
	border: none;
	border-radius: 12px;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	margin-top: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.btnLogin:hover {
	background: var(--maylo-primary-hover);
}

.btnLogin .spinner {
	display: none;
}

/* Eye Button */
.btnEye {
	position: absolute;
	top: 50%;
	right: 15px;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: #9ca3af;
	cursor: pointer;
	padding: 5px;
}

.btnEye:hover {
	color: #4b5563;
}

.btnEye svg {
	width: 20px;
	height: 20px;
}

.icoEyeOff {
	display: none;
}

.btnEye.show .icoEye {
	display: none;
}

.btnEye.show .icoEyeOff {
	display: block;
}

/* Links */
.loginLinks {
	margin-top: 24px;
	display: flex;
	justify-content: center;
	gap: 16px;
	font-size: 14px;
}

.loginLinks a {
	color: var(--text-sub);
	text-decoration: none;
	transition: color 0.2s;
}

.loginLinks a:hover {
	color: #111827;
}

.loginLinks a strong {
	color: var(--maylo-primary);
	font-weight: 600;
}

/* Copyright */
.copyright {
	margin-top: 40px;
	font-size: 13px;
	color: #9ca3af;
}

/* ================= MODALS ================= */
.modalWrap {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
}

.modalWrap[aria-hidden="false"] {
	display: flex;
}

.modalDim {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(2px);
}

.modalBox {
	position: relative;
	background: #ffffff;
	border-radius: 16px;
	width: 90%;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modalBox.w640 {
	max-width: 450px; /* Originally 640px (approx 70%) */
}

.modalBox.w760 {
	max-width: 530px; /* Originally 760px (approx 70%) */
}

.modalHead {
	padding: 24px 30px;
	border-bottom: 1px solid #f3f4f6;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.modalHead .ttl {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	color: #111827;
}

.btnClose {
	background: none;
	border: none;
	color: #9ca3af;
	font-size: 28px;
	cursor: pointer;
	line-height: 1;
	transition: color 0.2s;
}

.btnClose:hover {
	color: #111827;
}

.modalBody {
	padding: 30px;
	overflow-y: auto;
}

.guideBar {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	padding: 16px 20px;
	border-radius: 8px;
	color: #166534;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
}

.guideBar svg {
	width: 20px;
	height: 20px;
}

.frmTable {
	width: 100%;
	border-collapse: collapse;
}

.frmTable th {
	text-align: left;
	padding: 16px 0;
	color: #4b5563;
	font-size: 14px;
	font-weight: 600;
	vertical-align: middle;
}

.frmTable td {
	padding: 8px 0;
}

/* Modal Inputs */
.modalBox input[type="text"],
.modalBox input[type="password"],
.modalBox select {
	height: 48px;
	background: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 0 16px;
	color: #1f2937;
	font-size: 14px;
	transition: border-color 0.2s;
	width: 100%;
	box-sizing: border-box;
}

.modalBox input:focus,
.modalBox select:focus {
	border-color: var(--maylo-primary);
	outline: none;
}

.modalBox input:disabled {
	background: #f3f4f6;
	cursor: not-allowed;
}

/* Layouts inside modal */
.inlineRow {
	display: flex;
	gap: 8px;
}

.phoneRow {
	display: flex;
	gap: 8px;
	align-items: center;
}

.phoneRow select,
.phoneRow input {
	flex: 1;
}

.phoneRow .dash {
	color: #9ca3af;
}

.btnMini {
	height: 48px;
	padding: 0 20px;
	background: #ffffff;
	border: 1px solid #d1d5db;
	color: #4b5563;
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
	white-space: nowrap;
	transition: background 0.2s;
}

.btnMini:hover {
	background: #f9fafb;
}

.btnRow {
	display: flex;
	gap: 12px;
	margin-top: 30px;
	justify-content: center;
}

.btnPrimary {
	height: 50px;
	padding: 0 32px;
	background: var(--maylo-primary);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

.btnPrimary:hover {
	background: var(--maylo-primary-hover);
}

.btnCancel {
	height: 50px;
	padding: 0 32px;
	background: #ffffff;
	color: #4b5563;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 15px;
	cursor: pointer;
	transition: background 0.2s;
}

.btnCancel:hover {
	background: #f9fafb;
}

.resultBox {
	display: none;
	text-align: center;
	padding: 20px 0;
}

.resultIcon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	background: #dcfce7;
	color: #16a34a;
	border-radius: 50%;
	margin-bottom: 20px;
}

.resultIcon svg {
	width: 32px;
	height: 32px;
}

.resultBox p {
	font-size: 16px;
	color: #374151;
	line-height: 1.5;
}

.resultBox strong {
	color: var(--maylo-primary);
	font-size: 20px;
}