body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}


.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.auth-container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    position: relative;
}

.auth-header {
    background-color: #8b5cf6;
    color: white;
    padding: 1rem;
    border-radius: 8px 8px 0 0;
    text-align: center;
    margin: -2rem -2rem 1.5rem -2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.auth-logo {
    height: 48px;
    width: auto;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form input,
.auth-form button {
    width: 100%;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

.auth-form input {
    border: 1px solid #ccc;
}

.auth-form button {
    background-color: #3b82f6;
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.auth-form button:hover {
    background-color: #2563eb;
}

.error-messages {
    margin-top: 1rem;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.95rem;
}

.success-message {
    background: #d1fae5;
    border: 1px solid #34d399;
    color: #065f46;
    padding: 1rem;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
}
.input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon i {
    position: absolute;
    left: 12px;
    color: #888;
    font-size: 1rem;
    pointer-events: none;
}

.input-icon input {
    padding-left: 2.5rem;
}
.vop-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #f3f4f6;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    margin-top: 0.2rem;
    font-size: 0.95rem;
    color: #1f2937;
}
.vop-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #6b7280;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    display: inline-block;
    vertical-align: middle;
}
.vop-checkbox input[type="checkbox"]:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}
.vop-checkbox input[type="checkbox"]::after {
    display: none;
}
.vop-checkbox label {
    cursor: pointer;
}
.vop-checkbox a {
    color: #2563eb;
    text-decoration: underline;
}
@media (max-width: 480px) {
    .auth-container {
        padding: 1rem;
        margin: 1rem;
        max-width: 95%;
    }

    .auth-header {
        flex-direction: column;
        gap: 8px;
        padding: 0.75rem;
        font-size: 1rem;
    }

    .auth-logo {
        height: 40px;
    }

    .vop-checkbox {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .auth-form input,
    .auth-form button {
        font-size: 0.95rem;
        padding: 0.65rem;
    }

    .input-icon input {
        padding-left: 2rem;
    }

    .input-icon i {
        font-size: 0.9rem;
        left: 10px;
    }
}
.auth-link {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #374151;
}

.auth-link a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}
/* Discord OAuth Styles */
.oauth-section {
    margin: 1.5rem 0;
}

.btn-discord {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem;
    background-color: #5865F2;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.btn-discord:hover {
    background-color: #4752c4;
    color: white;
    text-decoration: none;
}

.btn-discord i {
    font-size: 1.2rem;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1rem 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #d1d5db;
}

.divider::before {
    margin-right: 0.5rem;
}

.divider::after {
    margin-left: 0.5rem;
}

.divider span {
    padding: 0 0.5rem;
    background: white;
}

/* Zajistíme stejnou velikost pro všechna tlačítka */
.auth-form button,
.btn-discord {
    height: 48px; /* Stejná výška */
    font-size: 1rem;
    font-weight: 600;
}

/* Responsive adjustments for Discord button */
@media (max-width: 480px) {
    .btn-discord {
        padding: 0.75rem;
        font-size: 1rem;
        height: 46px;
    }
    
    .btn-discord i {
        font-size: 1.1rem;
    }
    
    .divider {
        margin: 0.75rem 0;
        font-size: 0.85rem;
    }
    
    .auth-form button {
        height: 46px;
    }
}
/* 2FA Code Input Styles */
.code-inputs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
}

.code-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #fafafa;
    transition: all 0.3s ease;
}

.code-input:focus {
    outline: none;
    border-color: #8b5cf6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.code-input.filled {
    border-color: #10b981;
    background: #f0fdf4;
}

.auth-info {
    text-align: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f0f9ff;
    border-radius: 6px;
    border: 1px solid #bae6fd;
}

.auth-info p {
    color: #0369a1;
    font-weight: 600;
    margin: 0;
    font-size: 1rem;
}

@media (max-width: 480px) {
    .code-input {
        width: 40px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .code-inputs {
        gap: 0.4rem;
    }
}

@media (max-width: 360px) {
    .code-input {
        width: 35px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .code-inputs {
        gap: 0.3rem;
    }
}