/* Globální */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Speciální třída pro body na přihlašovací stránce - umožňuje obrázek na pozadí */
body.login-page {
    font-family: 'Inter', sans-serif;
    background-color: #0b0f19;
    color: #f8fafc;
    
    /* TADY MŮŽEŠ ZMĚNIT OBRÁZEK NA POZADÍ */
    /* linear-gradient dělá tmavé překrytí, aby karta a text krásně vynikly */
    background-image: linear-gradient(to bottom, rgba(11, 15, 25, 0.75), rgba(11, 15, 25, 0.9)), url('/assets/img/novinky_pozadi.jpg'); 
    
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.gradient-text { 
    background: linear-gradient(135deg, #ffffff, #3b82f6); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

/* Nav */
nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(11, 15, 25, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #1e293b;
}

/* Main */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 60px 16px;
    width: 100%;
}

.login-card {
    /* Skleněný efekt (Glassmorphism) */
    background-color: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 32px;
    padding: 48px 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    
    /* Jemná záře kolem celé karty */
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6), 
                0 0 50px -10px rgba(59, 130, 246, 0.15);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.login-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
}

.badge {
    display: inline-block;
    margin-bottom: 20px;
    padding: 6px 16px;
    border-radius: 9999px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background-color: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.login-card h2 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.subtitle {
    font-size: 15px;
    color: #94a3b8;
    margin-bottom: 32px;
    line-height: 1.5;
}

.btn-discord-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #5865F2;
    color: #ffffff;
    padding: 16px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.3);
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-discord-login:hover {
    background-color: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(88, 101, 242, 0.4);
}

.divider {
    margin: 28px 0;
    position: relative;
    text-align: center;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(51, 65, 85, 0.5);
    z-index: 1;
}

.divider span {
    background-color: #151f32; /* Sladěno s průhledností karty */
    padding: 0 16px;
    color: #64748b;
    font-size: 14px;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Grid */
.login-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: left;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 14px;
    font-weight: 700;
    color: #cbd5e1;
    letter-spacing: 0.3px;
}

.input-group input {
    width: 100%;
    background-color: rgba(11, 15, 25, 0.6);
    border: 1px solid #334155;
    padding: 16px;
    border-radius: 14px;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.2.5s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: rgba(11, 15, 25, 0.9);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.25);
}

.btn-submit {
    width: 100%;
    background-color: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 16px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    margin-top: 8px;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    transition: all 0.2s;
}

.btn-submit:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.4);
}

.btn-secondary-link {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background-color: transparent;
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 14px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.2s;
}

.btn-secondary-link:hover {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.5);
}

/* Footer */
footer {
    background-color: #1e293b;
    border-top: 1px solid #0b0f19;
    padding: 32px 16px;
    text-align: center;
    margin-top: auto;
}

/* Responzivita */
@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px;
    }
    
    .login-card h2 {
        font-size: 26px;
    }
}