Files
headless-login-demo/public/styles.css
2026-04-10 17:04:22 +09:00

407 lines
8.6 KiB
CSS

:root {
color: #132238;
font-family: 'Segoe UI', 'Noto Sans KR', sans-serif;
line-height: 1.5;
font-weight: 400;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-width: 320px;
min-height: 100vh;
background-color: #0f3d2e; /* 최하단 바탕색: 다크 그린 */
display: flex;
align-items: center;
justify-content: center;
}
button,
input {
font: inherit;
}
/* 배경 이미지를 담는 큰 박스 */
.app-shell {
position: relative;
width: 98vw; /* 좌우 길이를 더 늘려 배경 노출 감소 */
height: 96vh; /* 상하 균형을 위해 높이도 살짝 조정 */
background:
linear-gradient(rgba(15, 61, 46, 0.4), rgba(15, 61, 46, 0.6)),
url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=1920&q=80');
background-size: cover;
background-position: center;
border: 4px solid rgba(255, 255, 240, 0.801); /* 테두리 굵기를 8px로 대폭 강화 */
border-radius: 20px; /* 모서리 각도 조절 (48px -> 20px) */
box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
display: flex;
flex-direction: column;
align-items: center;
overflow-y: auto;
padding: 28px 24px;
}
.system-header {
margin-top: 5vh;
transform: translateY(-20px);
text-align: center;
color: rgba(255, 255, 240, 0.95); /* 아이보리색 타이틀 */ /*(255, 255, 240, 0.801) (255, 255, 255, 0.95)*/
text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
z-index: 10;
}
.system-header .sub-title {
display: block;
font-size: 1.15rem;
font-weight: 600;
margin-bottom: 8px;
}
.system-header .main-title {
margin: 0;
font-size: clamp(2rem, 3.4vw, 2.35rem);
font-weight: 800;
}
.login-panel {
width: min(100%, 720px);
margin-top: 3vh;
margin-bottom: auto; /* */
padding: 40px 40px 36px;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 28px;
background: rgba(255, 255, 240, 0.801); /* 로그인 카드 배경 (아이보리 화이트) */ /*(255, 255, 240, 0.801) (255, 255, 255, 0.92)*/
box-shadow: 0 32px 80px rgba(0, 0, 0, 0.2);
z-index: 20;
}
.panel-heading h1 {
margin: 0;
font-size: clamp(1.7rem, 2.5vw, 2.15rem);
line-height: 1.05;
color: #0f3d2e;
}
.panel-heading p {
margin: 10px 0 0;
color: #4a6659;
font-size: 0.95rem;
}
.login-form {
display: grid;
gap: 14px;
margin-top: 22px;
}
.field {
display: grid;
gap: 8px;
}
.field label {
color: #0a291f;
font-size: 0.92rem;
font-weight: 700;
}
.text-input {
width: 100%;
padding: 14px 16px;
border: 1px solid rgba(15, 61, 46, 0.2);
border-radius: 16px;
background: #fdfefe;
color: #132238;
transition: all 160ms ease;
}
.text-input:focus {
outline: none;
border-color: #0f3d2e;
box-shadow: 0 0 0 4px rgba(15, 61, 46, 0.14);
transform: translateY(-1px);
}
.input-hint {
margin: 0;
min-height: 20px;
color: #5c746b;
font-size: 0.9rem;
}
.primary-button {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 50px;
padding: 0 20px;
border: 0;
border-radius: 16px;
background: linear-gradient(180deg, #185c45 0%, #0f3d2e 100%);
color: #f8fbff;
font-weight: 700;
cursor: pointer;
box-shadow: 0 20px 40px rgba(15, 61, 46, 0.24);
transition: all 160ms ease;
}
.primary-button:hover:not(:disabled) {
transform: translateY(-1px);
box-shadow: 0 24px 44px rgba(15, 61, 46, 0.3);
}
.primary-button:disabled {
cursor: not-allowed;
opacity: 0.54;
box-shadow: none;
}
.status-card,
.success-panel {
margin-top: 18px;
padding: 16px 18px;
border-radius: 18px;
border: 1px solid rgba(15, 61, 46, 0.15);
}
.status-card {
background: #f4f9f7;
}
.status-card strong {
display: block;
margin-bottom: 8px;
color: #0f3d2e;
}
.status-card p,
.success-panel p {
margin: 0;
color: #5a7369;
}
.success-panel {
background: linear-gradient(180deg, #f3f8f5 0%, #edf5ef 100%);
border-color: rgba(15, 61, 46, 0.18);
}
.success-label {
margin-bottom: 6px;
color: #0f3d2e;
font-size: 0.72rem;
font-weight: 800;
text-transform: uppercase;
}
.success-panel h3 {
margin: 0 0 6px;
color: #0a291f;
font-size: 1.2rem;
}
.hidden {
display: none;
}
@media (max-width: 640px) {
.app-shell {
width: 98vw;
height: 98vh;
border-width: 4px; /* 모바일에서는 테두리 살짝 줄임 */
border-radius: 12px;
padding: 20px 14px;
}
.system-header {
margin-top: 2vh;
transform: translateY(0);
}
.system-header .sub-title {
font-size: 1rem;
}
.system-header .main-title {
font-size: clamp(1.55rem, 7vw, 1.95rem);
}
.login-panel {
width: min(100%, 640px);
margin-top: 18px;
padding: 26px 20px;
border-radius: 24px;
}
}
/* Dashboard Specific Styles */
.dashboard-panel {
width: min(100%, 920px);
padding: 42px 40px 34px;
}
.dashboard-content {
display: grid;
gap: 18px;
margin-top: 20px;
}
.welcome-msg {
margin-bottom: 18px;
text-align: center;
}
.welcome-msg h2 {
font-size: clamp(1.9rem, 2.8vw, 2.15rem);
color: #0f3d2e;
margin: 0 0 8px 0;
}
.welcome-msg p {
color: #4a6659;
font-size: 1rem;
margin: 0;
}
.info-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
}
.info-card {
background: rgba(255, 255, 255, 0.75); /* 투명도 살짝 조정 */
border-radius: 20px;
padding: 24px;
border: 1px solid rgba(15, 61, 46, 0.12);
box-shadow: 0 10px 30px rgba(15, 61, 46, 0.05); /* 카드에 미세한 그림자 추가 */
}
.card-title {
margin: 0 0 14px 0;
font-size: 1.18rem;
color: #0f3d2e;
display: flex;
align-items: center;
gap: 8px;
border-bottom: 1px solid rgba(15, 61, 46, 0.1);
padding-bottom: 10px;
}
.info-list {
list-style: none;
padding: 0;
margin: 0;
}
.info-item {
display: flex;
flex-direction: column;
padding: 10px 0;
border-bottom: 1px dashed rgba(15, 61, 46, 0.1);
}
.info-item:last-child {
border-bottom: none;
}
.info-label {
font-size: 0.82rem;
color: #5a7369;
margin-bottom: 4px;
text-transform: uppercase;
letter-spacing: 0.6px;
}
.info-value {
font-size: 1rem;
color: #0a291f;
font-weight: 600;
}
.badge {
display: inline-block;
padding: 5px 14px;
border-radius: 10px;
font-size: 0.98rem;
font-weight: 650;
background-color: #0f3d2e;
color: #f8fbff;
border: 2px solid #185c45;
box-shadow: 0 4px 12px rgba(15, 61, 46, 0.15);
letter-spacing: 0.5px;
}
.footer-actions {
margin-top: 28px;
display: flex;
justify-content: center;
}
.secondary-button {
background: linear-gradient(180deg, #185c45 0%, #0f3d2e 100%);
border: none;
color: #f8fbff;
padding: 12px 40px;
border-radius: 16px;
font-weight: 700;
cursor: pointer;
box-shadow: none; /* 초기 그림자 없음 (로그인 입력 전과 동일) */
opacity: 0.54; /* 초기 투명도 (로그인 입력 전과 동일) */
transition: all 160ms ease;
}
.secondary-button:hover {
transform: translateY(-2px);
box-shadow: 0 20px 40px rgba(15, 61, 46, 0.28); /* 마우스 오버 시 그림자 생성 */
opacity: 1; /* 마우스 오버 시 선명하게 */
}
/* Dashboard specific background override */
.dashboard-shell {
background:
linear-gradient(rgba(15, 61, 46, 0.5), rgba(15, 61, 46, 0.7)),
url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1920&q=80') !important;
background-size: cover !important;
background-position: center !important;
}
@media (max-width: 640px) {
.dashboard-panel {
padding: 28px 20px 24px;
}
.welcome-msg h2 {
font-size: 1.65rem;
}
.welcome-msg p {
font-size: 0.92rem;
}
.info-grid {
grid-template-columns: 1fr;
gap: 16px;
}
.info-card {
padding: 18px;
border-radius: 18px;
}
.card-title {
font-size: 1.05rem;
}
.footer-actions {
margin-top: 22px;
}
.secondary-button {
width: 100%;
padding: 12px 20px;
}
}