/* Login Page CSS - Shencim Panel */
/* Modern Dark Theme with Cyan Accents */

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #1e1e1e;
    --bg-hover: #252525;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --accent-cyan: #00CED1;
    --accent-cyan-light: #40E0D0;
    --accent-cyan-dark: #008B8B;
    --discord-purple: #5865F2;
    --discord-purple-dark: #4752C4;
    --border-color: #2a2a2a;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --success-color: #4CAF50;
    --warning-color: #FFC107;
    --danger-color: #F44336;
    --info-color: #2196F3;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, var(--accent-cyan) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, var(--discord-purple) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, var(--accent-cyan-dark) 0%, transparent 50%);
    opacity: 0.03;
    z-index: -2;
    animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { transform: scale(1) rotate(0deg); }
    33% { transform: scale(1.1) rotate(120deg); }
    66% { transform: scale(0.9) rotate(240deg); }
}

/* Animated Particles */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent);
    background-size: 200px 200px;
    opacity: 0.03;
    z-index: -1;
    animation: particlesMove 60s linear infinite;
}

@keyframes particlesMove {
    from { transform: translate(0, 0); }
    to { transform: translate(-200px, -200px); }
}

/* Main Container */
.authincation {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.authincation-content {
    width: 100%;
    max-width: 500px;
    animation: slideInUp 0.6s ease-out;
}

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

/* Auth Form Card */
.auth-form {
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.auth-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(0, 206, 209, 0.05) 100%);
    border-radius: 20px;
    pointer-events: none;
}

/* Logo Section */
.text-center {
    text-align: center !important;
}

.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
    text-decoration: none;
}

.logo-abbr {
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 8px var(--shadow-color));
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 4px 8px var(--shadow-color)); }
    50% { filter: drop-shadow(0 4px 20px rgba(0, 206, 209, 0.5)); }
}

.brand-title {
    text-align: center;
    margin-top: -10px;
}

.brand-title .logo-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin: 0;
    padding: 15px 10px;
    text-shadow: 0 0 20px rgba(0, 206, 209, 0.5);
    text-align: center;
}

/* Headers */
h4 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    animation: slideInRight 0.5s ease-out;
}

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

.alert-info {
    background: rgba(0, 206, 209, 0.1);
    border: 1px solid rgba(0, 206, 209, 0.3);
    border-left: 4px solid var(--accent-cyan);
    color: var(--text-primary);
    text-align: left;
}

.alert-success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
    border-left: 4px solid var(--success-color);
    color: var(--text-primary);
    text-align: left;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
    border-left: 4px solid var(--warning-color);
    color: var(--text-primary);
    text-align: left;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.1), rgba(244, 67, 54, 0.05));
    border-left: 4px solid var(--danger-color);
    color: var(--text-primary);
    text-align: left;
}

.alert h5 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: left;
}

.alert p {
    margin: 0;
    opacity: 0.9;
    text-align: left;
}

/* Discord Login Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--discord-purple), var(--discord-purple-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.btn-primary::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;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(88, 101, 242, 0.4);
}

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

.btn-primary:active {
    transform: translateY(0);
}

.btn-block {
    width: 100%;
}

.btn i {
    font-size: 1.3rem;
}

/* Muted Text */
.text-muted {
    color: var(--text-muted) !important;
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: center;
    margin-top: 1.5rem;
}

.text-muted strong {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Remove Sidebar (Not needed on login page) */
.sidebar-right {
    display: none;
}

/* Responsive Design */
@media (max-width: 576px) {
    .auth-form {
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }
    
    .brand-title .logo-text {
        font-size: 2rem;
    }
    
    h4 {
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Loading State */
.btn-loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Focus States */
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.3);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan-dark);
}