/* 인증 페이지 공통 스타일 */

/* app-container만 흰색 배경으로 설정 */
.app-container {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

/* 페이지 레이아웃 */
.auth-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: #ffffff !important;
    display: flex;
    flex-direction: column;
}

/* 상단 헤더 배경 */
.auth-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(140px + var(--safe-top));
    padding-top: var(--safe-top);
    background: #141428;
    z-index: 1;
}

/* 헤더 타이틀 */
.auth-title {
    position: absolute;
    top: calc(75px + var(--safe-top));
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: #ffffff;
    z-index: 20;
    margin: 0;
}

/* 뒤로가기 버튼 */
.auth-back-btn {
    position: absolute;
    top: calc(75px + var(--safe-top));
    left: 24px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 20;
    background: none;
    border: none;
}

.auth-back-btn img {
    width: 100%;
    height: 100%;
    filter: brightness(0) saturate(100%) invert(100%); /* 흰색으로 변경 */
}

/* 메인 폼 컨테이너 */
.auth-form-container {
    position: relative;
    width: 100%;
    padding: 24px;
    padding-bottom: 40px; /* 네이티브에서 패딩 처리하므로 최소 여백만 */
    margin-top: calc(140px + var(--safe-top));
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
}

/* 입력 필드 그룹 */
.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.auth-input-label {
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #323232;
    margin-bottom: 8px;
}

/* 기본 버튼 스타일 */
.btn {
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: 18px;
    text-transform: uppercase;
    border: none;
    border-radius: 10px;
    padding: 17px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    box-sizing: border-box;
}

/* Primary 버튼 (검은색 배경) */
.btn-primary {
    background: #141428;
    color: #ffffff;
    margin-bottom: 32px;
}

.btn-primary:hover {
    background: #1a1a3a;
    transform: translateY(-2px);
}

/* Secondary 버튼 (테두리만) */
.btn-secondary {
    background: transparent;
    color: #141428;
    border: 1px solid #747474;
}

.btn-secondary:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

/* 입력 필드 공통 스타일 */
.input-field {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #d8dadc;
    border-radius: 10px;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    color: #323232;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: #141428;
}

.input-field::placeholder {
    color: #999;
}

/* 비밀번호 필드 */
.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field .eye-icon {
    position: absolute;
    right: 16px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.password-field .eye-icon:hover {
    opacity: 0.7;
}

/* 사용자명 필드 */
.username-field {
    position: relative;
    display: flex;
    align-items: center;
}

.username-field .check-icon {
    position: absolute;
    right: 16px;
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
}

.username-field .check-icon img {
    width: 100%;
    height: 100%;
}

/* 반응형 미디어 쿼리 */
@media (max-width: 480px) {
    .auth-form-container {
        padding: 16px;
        padding-bottom: 30px; /* 네이티브에서 패딩 처리하므로 최소 여백만 */
        gap: 16px;
        margin-top: 110px;
    }

    .auth-header-bg {
        height: 110px; /* 작은 화면에서 헤더 높이 축소 */
    }

    .auth-title {
        font-size: 22px;
        top: 60px; /* 헤더 높이에 맞춰 조정 */
    }

    .auth-back-btn {
        top: 60px; /* 타이틀과 같은 높이로 조정 */
    }

    .btn {
        font-size: 16px;
        height: 52px;
        padding: 15px 20px;
    }

    .auth-input-label {
        font-size: 15px;
    }

    .input-field {
        font-size: 16px; /* iOS 자동 확대 방지 - 16px 유지 */
        padding: 12px 16px; /* 패딩 축소로 컴팩트하게 */
    }
}

@media (max-width: 375px) {
    /* 아이폰 SE, V20 등 작은 화면 대응 */
    .auth-form-container {
        padding: 12px;
        padding-bottom: 20px; /* 네이티브에서 패딩 처리하므로 최소 여백만 */
        gap: 12px;
        margin-top: 100px;
    }

    .auth-header-bg {
        height: 100px; /* 더 작은 화면에서 헤더 높이 더 축소 */
    }

    .auth-title {
        font-size: 18px;
        top: 45px; /* 헤더 높이에 맞춰 더 조정 */
    }

    .auth-back-btn {
        top: 45px; /* 타이틀과 같은 높이로 조정 */
    }

    .btn {
        font-size: 15px;
        height: 48px;
        padding: 12px 16px;
    }

    .auth-input-label {
        font-size: 14px;
    }

    .input-field {
        font-size: 16px; /* iOS 자동 확대 방지 - 16px 유지 */
        padding: 10px 14px; /* 패딩 더욱 축소로 매우 컴팩트하게 */
    }
}

@media (min-width: 768px) {
    .auth-form-container {
        padding: 24px;
        padding-bottom: 40px; /* 네이티브에서 패딩 처리하므로 최소 여백만 */
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .auth-title {
        font-size: 24px; /* 기존 크기 유지 */
    }
    
    .btn {
        font-size: 18px; /* 기존 크기 유지 */
        height: 56px; /* 기존 크기 유지 */
        padding: 17px 24px; /* 기존 크기 유지 */
    }
    
    .auth-input-label {
        font-size: 16px; /* 기존 크기 유지 */
    }
    
    .input-field {
        font-size: 16px; /* 기존 크기 유지 */
        padding: 16px 20px; /* 기존 크기 유지 */
    }
}

@media (min-width: 1024px) {
    .auth-form-container {
        padding: 24px;
        padding-bottom: 40px; /* 네이티브에서 패딩 처리하므로 최소 여백만 */
        max-width: 600px;
    }
    
    .auth-title {
        font-size: 24px; /* 기존 크기 유지 */
    }
    
    .btn {
        font-size: 18px; /* 기존 크기 유지 */
        height: 56px; /* 기존 크기 유지 */
        padding: 17px 24px; /* 기존 크기 유지 */
    }
    
    .auth-input-label {
        font-size: 16px; /* 기존 크기 유지 */
    }
    
    .input-field {
        font-size: 16px; /* 기존 크기 유지 */
        padding: 16px 20px; /* 기존 크기 유지 */
    }
} 