* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body, .login-screen {
	background-color: #000 !important; /* 다크 배경 유지하되 */
	color: #fff !important;           /* 글씨는 흰색으로 */
}

.screen-wrapper {
	overflow:hidden;
}

.roboto-<uniquifier> {
	font-family: "Roboto", sans-serif;
	font-optical-sizing: auto;
	font-weight: <weight>;
	font-style: normal;
	font-variation-settings: "wdth" 100;
}

body {
	font-family: "Roboto", sans-serif;
	background: #000;
	color: white;
	overflow-x: hidden;
}

.container {
	max-width: 768px;
	margin: 0 auto;
	min-height: 100vh;
	position: relative;
}

a {
    text-decoration: none !important;  /* 밑줄 제거 */
}


.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.splash-video {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
	pointer-events: none;
}

.btn-date_p {
	padding: 12px 14px;
	font-size: 14px;
	border: none;
	border-radius: 6px;
	color: #fff;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s ease;
}

.btn-danger   { background-color: #e6604a; } 
.btn-primary   { background-color: #6366F1; }   /* Indigo */
.btn-success   { background-color: #10B981; }   /* Green */
.btn-info      { background-color: #3B82F6; }   /* Blue */
.btn-warning   { background-color: #F59E0B; }   /* Amber */
.btn-secondary { background-color: #6B7280; }   /* Gray */
.btn-dark      { background-color: #111827; }   /* Black-ish */

.btn-danger:hover   { background-color: #e6604a; }
.btn-primary:hover   { background-color: #4F46E5; }
.btn-success:hover   { background-color: #059669; }
.btn-info:hover      { background-color: #2563EB; }
.btn-warning:hover   { background-color: #D97706; }
.btn-secondary:hover { background-color: #4B5563; }
.btn-dark:hover      { background-color: #000000; }
        
/* Login Screen */
.login-screen {
    display: none;
    background: #000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 30px;
    width: 100%;
    z-index: 999;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.login-screen.slide-in {
    transform: translateX(0);
}
/* 대시보드 전환 애니메이션 */
.login-screen.slide-to-dashboard {
    transform: translateX(-100%);
}
.login-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px;
}
.login-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
}

.register-form,
.country-selector {
    width: 100%;
    max-width: 450px;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
        
#registerform {
    width: 100%;
}

.register-form {
    max-width: 450px;
    margin: 0 auto;           /* ✅ 가운데 정렬 */
    width: 100%;
    padding: 0 20px;          /* ✅ 좌우 패딩 */
}

.login-form,
.country-selector {
    width: 100%;
    max-width: 350px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    position: relative;
}

.input-field {
    width: 100%;
    padding: 15px 20px;
    background: #1a1a1a;
    color: #fff;
    font-size: 16px;
    border: 2px solid #333;
    border-radius: 12px;
    transition: all 0.3s ease;
}
.input-field:focus {
    outline: none;
    border-color: #28e15a;
    box-shadow: 0 0 0 3px rgba(40, 225, 90, 0.1);
}
.input-field::placeholder {
    color: #888;
}

.login-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.primary-btn {
    background: #fff;
    color: #000;
}

.primary-btn:hover {
    background: #20c44d;
}

.secondary-btn {
    background: #2d2c2c;
    color: #fff;
    border: 2px solid #333;
}
.secondary-btn:hover {
    background: #1a1a1a;
    border-color: #555;
}
.country-selector {
    margin-top: 15px;
}
.country-flags {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.flag-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.flag-item:hover {
    transform: scale(1.1);
}
.flag-emoji {
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.country-flags a,
.country-flags .flag-item {
    text-decoration: none;   /* 🔹 밑줄 제거 */
    color: white;            /* 🔹 글자 색 흰색 */
}

.country-flags a:hover,
.country-flags .flag-item:hover {
    opacity: 0.8;            /* 선택 시 약간 투명하게 (선택사항) */
}
        
#loginform {
    width: 100%;
}

.login-form {
    max-width: 350px;
    margin: 0 auto;           /* ✅ 가운데 정렬 */
    width: 100%;
    padding: 0 20px;          /* ✅ 좌우 패딩 */
}

.input-group,
.input-field {
    width: 100%;
}

/* 회원가입 화면에서 스크롤 가능하게 만들기 */
.register-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    max-height: 100vh;
    overflow-y: auto;  /* ✅ 중요: 세로 스크롤 가능하게 */
    background: #000;
    display: none;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    padding: 20px 10px;
    z-index: 9;
}

@keyframes slideFromRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.slide-from-right {
    animation: slideFromRight 0.5s ease-in-out forwards;
}

/* 비밀번호 찾기 */
.forgot-password {
    margin-top: 10px;
    text-align: center;
}
.forgot-password a {
    color: #28e15a;
    font-size: 14px;
    text-decoration: none;
}
.forgot-password a:hover {
    color: #fff;
}
/* -------------------------------------
 * 반응형 (Media Queries)
 * ------------------------------------- */
/* 모바일 화면 */
@media (max-width: 480px) {
    .container {
        width: 100%;
        overflow: hidden;
    }
    
    .splash-video {
        object-fit: contain;
    }
    
    .login-screen {
        padding: 30px 20px;
    }
    /* 공통 넓이 제한 */
    .login-form,
    .country-selector {
        max-width: 300px;
    }
    .country-flags {
        gap: 15px;
    }
    .flag-emoji {
        font-size: 20px;
    }
}
/* 태블릿/작은 데스크탑 화면 */
@media (min-width: 481px) and (max-width: 768px) {
    .splash-video {
        max-width: 100vw;
        max-height: 70vh;
    }
}
/* 가로 모드 (스마트폰 가로 등 높이가 낮은 경우) */
@media (orientation: landscape) and (max-height: 600px) {
    .splash-video {
        max-width: 40vw;
        max-height: 100vh;
    }
}