/* ===================================
   Login Page - Clean & Simple Design
   =================================== */

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Prompt', 'Inter', sans-serif !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%) !important;
    background-size: 400% 400% !important;
    animation: gradientShift 15s ease infinite !important;
    min-height: 100vh;
    margin: 0;
    padding: 0 !important;
    color: #333 !important;
    padding-top: 60px !important;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    z-index: -1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (max-width: 767px) {
    body {
        padding-top: 56px !important;
    }
}

/* Container */
.login-page-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Page Title */
.page-title {
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    font-weight: 700;
    font-size: 2rem;
    text-align: center;
    animation: fadeInDown 0.8s ease-out, textGradientMove 4s ease infinite;
}

@keyframes textGradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.page-title i {
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ff6b6b);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 0.5rem;
    animation: iconGlow 2s ease-in-out infinite;
}

@keyframes iconGlow {
    0%, 100% { 
        background-position: 0% 50%;
    }
    50% { 
        background-position: 100% 50%;
    }
}

/* Main Login Card */
.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 10px 40px rgba(102, 126, 234, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.6s ease-out;
}

/* Login Header */
.login-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 2rem;
    text-align: center;
    position: relative;
}

.login-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.login-header-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.login-header-icon i {
    font-size: 2rem;
    color: white;
}

.login-header h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    position: relative;
}

.login-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
    position: relative;
}

/* Login Body */
.login-body {
    padding: 2rem;
}

/* LINE Login Button */
.line-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #00c300, #00b900);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 195, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.line-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.line-btn:hover::before {
    left: 100%;
}

.line-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 195, 0, 0.4);
}

.line-btn:active {
    transform: translateY(-1px);
}

.line-btn:disabled {
    background: linear-gradient(135deg, #ccc, #aaa);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.line-btn .line-icon {
    font-size: 1.4rem;
}

/* Loading Spinner */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Open in LINE App Button */
.line-app-redirect {
    margin-top: 1rem;
}

#open-in-line-app-btn {
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: rgba(0, 195, 0, 0.1);
    color: #00c300;
    border: 2px solid rgba(0, 195, 0, 0.3);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

#open-in-line-app-btn:hover {
    background: rgba(0, 195, 0, 0.15);
    border-color: rgba(0, 195, 0, 0.5);
    transform: translateY(-2px);
}

/* Profile Content */
#profile-content {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.user-profile {
    margin-bottom: 1.5rem;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
    margin-bottom: 0.75rem;
}

#profile-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Alert Styles */
.alert {
    border-radius: 12px;
    padding: 1rem;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert i {
    font-size: 1.1rem;
}

.alert-success {
    background: rgba(74, 222, 128, 0.15);
    color: #059669;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Decorations */
.floating-decoration {
    position: fixed;
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
}

.floating-decoration.circle-1 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: 10%;
    left: -80px;
    animation: floatDecoration 8s ease-in-out infinite;
}

.floating-decoration.circle-2 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 15%;
    right: -50px;
    animation: floatDecoration 10s ease-in-out infinite reverse;
}

.floating-decoration.circle-3 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(240, 147, 251, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: 45%;
    right: 8%;
    animation: floatDecoration 12s ease-in-out infinite;
}

@keyframes floatDecoration {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(15px, -15px) scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-page-container {
        padding: 1.5rem 1rem;
    }
    
    .page-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .login-card {
        border-radius: 20px;
    }
    
    .login-header {
        padding: 1.5rem;
    }
    
    .login-header h2 {
        font-size: 1.35rem;
    }
    
    .login-body {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .login-page-container {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .login-header-icon {
        width: 60px;
        height: 60px;
    }
    
    .login-header-icon i {
        font-size: 1.75rem;
    }
    
    .login-header h2 {
        font-size: 1.25rem;
    }
    
    .line-btn {
        font-size: 1rem;
        padding: 0.9rem 1.25rem;
    }
}
