/* 반응형 로그인 페이지 스타일 */

/* 기본 모바일 스타일 (320px ~ 767px) */
@media (max-width: 767px) {
    .page-content {
        padding: 20px 15px;
    }
    
    .card-style {
        margin: 0;
        border-radius: 15px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .card-style .content {
        margin: 20px 15px;
    }
    
    .card-style h3 {
        font-size: 24px;
        line-height: 30px;
        margin-bottom: 20px;
    }
    
    .btn {
        height: 50px;
        font-size: 16px;
        border-radius: 8px;
    }
    
    #google-sign-in-button {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        color: #374151;
    }
    
    #google-sign-in-button:active {
        background: #f9fafb;
        border-color: #d1d5db;
    }
    
    .login-icon {
        width: 20px !important;
        height: 20px !important;
        transition: transform 0.3s ease;
    }
    
    .btn:active .login-icon {
        transform: scale(0.95);
    }
    
    .btn-text {
        font-weight: 600;
    }
    
    .spinner-border-sm {
        width: 14px;
        height: 14px;
    }
    
    .divider {
        margin: 20px 0;
    }
    
    .infor-footer {
        padding: 15px;
        font-size: 12px;
    }
    
    .infor-footer-links a {
        margin: 0 5px;
    }
    
    .footer-separator {
        margin: 0 3px;
        opacity: 0.5;
    }
    
    .container {
        max-width: 100%;
        margin: 0 auto;
        padding: 0 10px;
    }
    
    #kakao-sign-in-button {
        background: linear-gradient(135deg, #fee500 0%, #ffd700 100%);
        border: none;
        color: #3c1e1e;
    }
}

/* 태블릿 스타일 (768px ~ 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .page-content {
        padding: 40px 30px;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .card-style {
        margin: 0 auto;
        max-width: 500px;
        border-radius: 20px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }
    
    .card-style .content {
        margin: 30px 25px;
    }
    
    .card-style h3 {
        font-size: 28px;
        line-height: 36px;
        margin-bottom: 25px;
    }
    
    .btn {
        height: 55px;
        font-size: 17px;
        border-radius: 10px;
    }
    
    #google-sign-in-button {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        color: #374151;
    }
    
    #google-sign-in-button:hover {
        background: #f9fafb;
        border-color: #d1d5db;
    }
    
    .login-icon {
        width: 22px !important;
        height: 22px !important;
        transition: transform 0.3s ease;
    }
    
    .btn:hover .login-icon {
        transform: scale(1.05);
    }
    
    .btn-text {
        font-weight: 600;
        letter-spacing: 0.3px;
    }
    
    .spinner-border-sm {
        width: 15px;
        height: 15px;
    }
    
    .divider {
        margin: 25px 0;
    }
    
    .infor-footer {
        padding: 20px;
        font-size: 13px;
    }
    
    .footer-separator {
        margin: 0 5px;
        opacity: 0.6;
    }
    
    .container {
        max-width: 100%;
        margin: 0 auto;
        padding: 0 20px;
    }
    #kakao-sign-in-button {
        background: linear-gradient(135deg, #fee500 0%, #ffd700 100%);
        border: none;
        color: #3c1e1e;
    }
}

/* 데스크톱 스타일 (1024px 이상) */
@media (min-width: 1024px) {
    body {
        background: #f8fafc;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #page {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .header {
        position: relative !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    
    .page-content {
        padding: 0;
        max-width: 450px;
        margin: 0 auto;
        background: #ffffff;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        overflow: hidden;
    }
    
    .card-style {
        margin: 0;
        border-radius: 16px;
        box-shadow: none;
        background: transparent;
    }
    
    .card-style .content {
        margin: 40px 35px;
        padding: 20px 0;
    }
    
    .card-style h3 {
        font-size: 28px;
        line-height: 36px;
        margin-bottom: 30px;
        color: #1a202c;
        font-weight: 700;
        letter-spacing: -0.5px;
    }
    
    .btn {
        height: 60px;
        font-size: 18px;
        border-radius: 12px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }
    
    .btn:active {
        transform: translateY(0);
    }
    
    #google-sign-in-button {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        color: #374151;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    #google-sign-in-button:hover {
        background: #f9fafb;
        border-color: #d1d5db;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }
    
    #kakao-sign-in-button {
        background: #fee500;
        border: none;
        color: #3c1e1e;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    #kakao-sign-in-button:hover {
        background: #f4d800;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }
    
    .login-icon {
        width: 24px !important;
        height: 24px !important;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
        transition: transform 0.3s ease;
    }
    
    .btn:hover .login-icon {
        transform: scale(1.1);
    }
    
    .btn-text {
        font-weight: 600;
        letter-spacing: 0.5px;
    }
    
    .spinner-border-sm {
        width: 16px;
        height: 16px;
    }
    
    .divider {
        margin: 30px 0;
        height: 1px;
        background: #e5e7eb;
    }
    
    .infor-footer {
        padding: 25px;
        font-size: 14px;
        background: #f9fafb;
        border-top: 1px solid #e5e7eb;
    }
    
    .infor-footer-links a {
        margin: 0 8px;
        color: #6b7280;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .infor-footer-links a:hover {
        color: #374151;
    }
    
    .footer-separator {
        margin: 0 8px;
        opacity: 0.6;
    }
    
    .container {
        max-width: 100%;
        margin: 0 auto;
        padding: 0 15px;
    }
    
    /* 애니메이션 효과 */
    .card-style {
        animation: slideInUp 0.6s ease-out;
    }
    
    @keyframes slideInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .btn {
        animation: fadeInUp 0.8s ease-out;
        animation-fill-mode: both;
    }
    
    .btn:nth-child(1) { animation-delay: 0.1s; }
    .btn:nth-child(2) { animation-delay: 0.2s; }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* 대형 화면 스타일 (1440px 이상) */
@media (min-width: 1440px) {
    .page-content {
        max-width: 500px;
    }
    
    .card-style .content {
        margin: 50px 40px;
    }
    
    .card-style h3 {
        font-size: 36px;
        line-height: 44px;
    }
    
    .btn {
        height: 65px;
        font-size: 19px;
    }
}

/* 초대형 화면 스타일 (1920px 이상) */
@media (min-width: 1920px) {
    .page-content {
        max-width: 550px;
    }
    
    .card-style .content {
        margin: 60px 45px;
    }
    
    .card-style h3 {
        font-size: 40px;
        line-height: 48px;
    }
    
    .btn {
        height: 70px;
        font-size: 20px;
    }
}

/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
    .card-style,
    .btn {
        animation: none;
        transition: none;
    }
}

/* 로딩 상태 스타일 */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading .btn-text {
    opacity: 1; /* 텍스트가 보이도록 opacity를 1로 설정 */
}

.btn.loading .spinner-border-sm {
    opacity: 1;
}

/* 포커스 스타일 개선 */
.btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* 스크린 리더 지원 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 페이지 로드 애니메이션 */
.page-loaded .card-style {
    animation: fadeInScale 0.8s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 터치 디바이스 최적화 */
.touch-device .btn {
    min-height: 44px; /* 터치 타겟 최소 크기 */
}

.touch-device .btn:active {
    transform: scale(0.98);
}

/* 데스크톱 뷰 클래스 */
.desktop-view .page-content {
    animation: slideInFromCenter 0.6s ease-out;
}

@keyframes slideInFromCenter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
    @media (min-width: 1024px) {
        body {
            background: #111827;
        }
        
        .page-content {
            background: #1f2937;
        }
        
        .card-style h3 {
            color: #f9fafb;
        }
        
        #google-sign-in-button {
            background: #374151;
            border-color: #4b5563;
            color: #f9fafb;
        }
        
        #google-sign-in-button:hover {
            background: #4b5563;
            border-color: #6b7280;
        }
        
        .divider {
            background: #4b5563;
        }
        
        .infor-footer {
            background: #111827;
            border-top: 1px solid #4b5563;
        }
        
        .infor-footer-links a {
            color: #9ca3af;
        }
        
        .infor-footer-links a:hover {
            color: #f3f4f6;
        }
    }
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .card-style {
        border: 2px solid #000;
    }
}

/* 인쇄 스타일 */
@media print {
    .header,
    .infor-footer,
    .btn {
        display: none !important;
    }
    
    .page-content {
        background: white !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
    
    .card-style {
        box-shadow: none !important;
    }
} 